config部分配置
management:
endpoints:
web:
exposure:
include: "*"
客户端部分配置
cloud:
config:
discovery:
enabled: true
service-id: CONFIG
profile: test
#注释掉下面两行webhooks没用,即使不注释也只有第一次更改有效
bus:
id: ${spring.application.name}:${spring.cloud.config.profile}:${random.value}
上面的注释是问题一
第二个问题就是,即使注释了那两行,仅通过 http://localhost:8080/actuator/bus-refresh 手动刷新但是也是只有第一次有效(有@RefreshScope注解)