我正在使用微服务,并使用Spring云配置服务器将配置集中存储在GIT存储库中。我有一些特定于应用程序的xml文件,可以使用以下URL从配置服务器获取xml文件:
{Spring-cloud-server-uri} / {name} / {profile} / {label} / {path}
我能够根据开发,测试等配置文件分隔文件,但是在保存xml文件以使其特定于应用程序时,有什么方法可以提及应用程序名称。
假设对于yml或属性文件,我们将它们保存如下:
{application-name}-{profile-name} .properties
但是根据Spring Cloud文档,它为我们提供了仅根据配置文件存储它的选项:
https://cloud.spring.io/spring-cloud-config/multi/multi__serving_plain_text.html
但是我想要的是这样的:
log- {application-name}-{profile-name} .xml
因为有了这个,我不知道{Spring-cloud-server-uri} / {applicationname} / {profile} / {label} / {path}中'application'的意义是什么
在此先感谢您,让我知道我是否在某个方向上思考,这是Spring cloud config不支持的功能。
我在spring-cloud-config GitHub存储库中提出了一个相同的问题,我认为目前还不可能。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句