【问题标题】:Spring config client configuration not updated with "/actuator/refresh" endpointSpring config 客户端配置未使用“/actuator/refresh”端点更新
【发布时间】:2018-07-31 09:33:46
【问题描述】:

我使用的是 Spring 2.0.3。配置客户端的数据库配置是通过配置服务器从 git 存储库获取的。

我已更改数据库配置并推回 git。

然后,我调用了“http://client_host/actuator/refresh”端点来加载新配置。

我已经在我的 application.yml 文件中公开了“刷新”端点。 结果是, 配置服务器调用 git 存储库,并且可以将新配置保存在“/tmp/repos”中。

但是配置客户端无法更新数据库配置?

您能帮我解决这个问题吗?

【问题讨论】:

    标签: spring-boot microservices spring-cloud-config


    【解决方案1】:

    http://client_host/actuator/refresh" 只会更新静态配置,而 /actuator/bus-refresh 或 /bus/refresh 会更新所有动态配置,它会触发所有云客户端刷新它们的实例。

    【讨论】:

      猜你喜欢
      • 2015-07-13
      • 1970-01-01
      • 2021-10-14
      • 2020-07-19
      • 2017-10-12
      • 1970-01-01
      • 2016-11-26
      • 1970-01-01
      • 2019-03-13
      相关资源
      最近更新 更多