spring-boot - Spring config 客户端配置未使用“/actuator/refresh”端点更新
问题描述
我正在使用 Spring 2.0.3。配置客户端的数据库配置是通过配置服务器从 git 存储库获取的。
我已更改数据库配置并推回 git。
然后,我调用了“ http://client_host/actuator/refresh ”端点来加载新配置。
我已经在 application.yml 文件中公开了“刷新”端点。结果是,配置服务器调用 git 存储库,并且可以将新配置保存在“/tmp/repos”中。
但是配置客户端无法更新数据库配置?
你能帮我解决这个问题吗?
解决方案
http://client_host/actuator/refresh " 只会更新静态配置,而 /actuator/bus-refresh 或 /bus/refresh 将更新所有动态配置,它会触发所有云客户端刷新它们的实例。
推荐阅读
- pandas - 根据一列中的多个字符串选择行
- c# - 如何将我的 xamarin android 应用注册为 SMS 助理处理程序?
- tsql - 使用 T-SQL 可以从六个月的销售数据中从最低到最高创建 100 个平均价格(如 Excel PERCENTILE)?
- python - 问题:用户的条目没有被正确保存
- azure - Azure 文件共享 - 设置为阻止两个人编辑同一个文件
- javascript - 如何在Javascript中的函数内注入模拟函数
- dynatrace - Dynatrace 新用户、总用户
- swift - 在自动合成的 init 方法中使用非默认参数参数化 @PropertyWrapper?
- javascript - 有条件地生成表格换行符
- wpf - 具有可调整大小列的数据网格背景问题