首页 文章

spring cloud config没有post / refresh

提问于
浏览
1

我使用spring cloud config . 配置服务器从git repo获取属性 . 仅在我将post请求发送到客户端上的/ refresh endpoints 后,客户端才更新自己的属性 . 在配置服务器处理“更改属性”事件后,如何强制客户端刷新属性?

1 回答

  • 1

    当我们调用“/ bus / refresh” endpoints 时,引入了spring cloud bus来刷新所有的微服务 . 您可以通过暴露“/ refresh” endpoints 来尝试此操作

相关问题