1 gradle配置:
RabbitMQ 运行依赖:
compile('org.springframework.boot:spring-boot-starter-amqp:1.5.6.RELEASE')
SpringBoot 测试依赖:
compile('org.springframework.boot:spring-boot-starter-test:1.5.1.RELEASE')
2 配置文件
host: 127.0.0.1
port: 5672
username: guest
password: guest
publisher-confirms: true #是否开启回调
virtual-host: /