我正在尝试使用 spring-cloud-config-client 在启动时从 spring-cloud-config-server 应用程序读取我的配置属性。我的应用程序是一个 Spring-Boot 应用程序,我需要做的是在请求被发送到配置服务器之前添加一个特定的标头。
我已阅读文档(http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html),但找不到任何方法来使用提供的 RestTemplate 自定义 ConfigServicePropertySourceLocator。
最好的方法是什么?
非常感谢