其实我想说配置文件中spring.rabbitmq.host=localhost,spring.rabbitmq.port=5672,都是不用写的,SpringBoot中默认就是这样!还有后来的人记得在config-client 启动类里加入 @RefreshScope 注解。然后在yml或者properties中加入management.security.enabled=false。处理post请求可以用postman来操作!
Spring cloud 消息总线出错
最新推荐文章于 2024-09-29 10:27:31 发布
本文介绍在 Spring Boot 中配置 RabbitMQ 的方法,并强调默认配置的重要性。同时讲解了如何使用 @RefreshScope 注解刷新配置,以及如何禁用安全验证以方便进行 POST 请求测试。
457

被折叠的 条评论
为什么被折叠?



