一、安装rebbitmq
1.下载安装
2.ip和端口
1) mq后台配置:localhost:5672
2) mq管理界面:localhost:15672
注:管理界面是一个插件,不会自动安装。
安装插件命令:rabbitmq-plugins enable rabbitmq_management
二、服务端config-server配置
1.pom.xml添加配置:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>