ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**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> <optional>true</optional> </dependency> ``` **2. `application.yml`配置 RabbitMQ 服务信息** ```yml spring: rabbitmq: addresses: stand-alone port: 5672 username: admin password: admin ``` **3. 环境搭建完毕!** **** 案例代码:https://gitee.com/flymini/codes03/tree/master/learn-boot-rabbitmq