1.依赖引用
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
2.配置
spring:
rabbitmq:
host: 192.168.2.17
port: 5672
username: admin
password: admin
3.代码
1.依赖引用
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
2.配置
spring:
rabbitmq:
host: 192.168.2.17
port: 5672
username: admin
password: admin
3.代码