统一配置中心

1.搭建统一配置项目  创建git仓库配置文件

文件访问路径说明

 

2.spring cloud bus  配置文件修改后自动刷新

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>

暴露全路径接口
management:
  endpoints:
web:
expose: "*"

手动刷新接口,mq通知信息变化
curl -v -X POST "http://localhost:8080/actuator/bus-refresh"
自动刷新配置git webhooks

 

 

 

 
posted @ 2019-06-09 22:15  yu_fly  阅读(221)  评论(0)    收藏  举报