本文主要是介绍spring cloud configserver 踩坑,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在spring boot 2.x版本,spring cloud Finchley版本,集成消息总线spring-cloud-starter-bus-amqp,调用bus/refresh语句发生变化
之前使用:
ip:port/bus/refresh?destination=[application.name]:port更新某个微服务的配置
spring boot 2.x之后变成:
ip:port/bus-refresh/[application.name]:port
#直接更新某个应用(config-client)的配置
ip:port/actuator/refresh(ip和port为服务的ip和端口)
#总线类型(config-server)更新全部
ip:port/actuator/bus-refresh(ip和port为配置中心的ip和端口)
#通过总线更新某个服务(应用)
ip:port/actuator/bus-refresh/[application.name]:port(ip和port为config-server的ip和端口)
#通过总线更新某个服务的全部实例
ip:port/actuator/bus-refresh/[application.name]:*
这篇关于spring cloud configserver 踩坑的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!