1. 修改pom
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2.bootstrap.yml
management:
endpoints:
web:
exposure:
include: refresh,health
3.
4. git上配置文件 https://github.com/nlxs0511/springcloud-config-repo.git
5.启动项目之后请求接口 localhost:8054/config/test
6.修改配置文件
7. 调用接口 localhost:8054/actuator/refresh
8.再次请求 localhost:8054/config/test