Open chengfengjie opened 6 years ago
添加mavn依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
application.properties配置
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest
mac os 安装rabbitmq
通过homebrew安装,命令如下:
管理页面:
http://localhost:15672
默认账号密码:账号:guest 密码:guest