其实我想说配置文件中spring.rabbitmq.host=localhost,spring.rabbitmq.port=5672,都是不用写的,SpringBoot中默认就是这样!还有后来的人记得在config-client 启动类里加入 @RefreshScope 注解。然后在yml或者properties中加入management.security.enabled=false。处理post请求可以用postman来操作!
Spring cloud 消息总线出错
最新推荐文章于 2022-05-08 18:54:42 发布