动态刷新配置
pom.xml
1 |
<dependency> |
application.yml
1 |
#关闭安全认证 |
给需要加载变量的bean
上面加载@RefreshScope
注解
客户端执行/refresh
的时候就会更新此bean
下面的变量值
1 |
curl -X POST http://localhost:7007/actuator/refresh |
动态刷新配置
1 |
<dependency> |
1 |
#关闭安全认证 |
给需要加载变量的bean
上面加载@RefreshScope
注解
客户端执行/refresh
的时候就会更新此bean
下面的变量值
1 |
curl -X POST http://localhost:7007/actuator/refresh |
近期评论