1
1.1集成rabbitmq,添加maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
1.2添加rabbitmq服务配置
1)application.properties
spring.rabbitmq.host=192.168.15.131
spring.rabbitmq.port=5672
spring.rabbitmq.username=admin
spring.rabbitmq.password=123456
2)application.yml
spring:
rabbitmq:
host: 192.168.1.204
port: 15672
username: admin
password: admin