多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**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