💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**1. 引入spring-boot-starter-amqp** ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.12</version> </dependency> ``` **2. `application.yml`编辑rabbitmq服务信息** ```yml spring: rabbitmq: addresses: me.rabbitmq.com port: 5672 username: admin password: admin ``` **3. 环境搭建完毕!**