当从
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
<version>1.3.4.RELEASE</version>
</dependency>至
Greenwich.SR2 (aka 2.1.3.RELEASE)
我编写了一个简单的脚本来比较两个服务器返回的配置(在转换之前进行验证)。我的脚本失败了,因为propertySources "name“字段更改了:
它过去常返回:
"name": "git@my-server:MyOrg/central-config.git/some-application.yml#dev"
但是现在返回:
"name": "git@my-server:MyOrg/central-config.git/some-application.yml (document #3)"
IE #dev现在是(document #3),在调试信任时它的价值要低得多。
我知道我可以在测试中忽略name,但是为了可用性起见,我想要找回旧的格式。
这是故意的吗?
不管怎么说,还需要配置这个吗?
更新:
升级前:

升级后:

发布于 2019-07-24 13:24:25
合理化多文档配置文件处理(https://github.com/spring-projects/spring-boot/commit/c0d79b92735b46010fb922a214b4cbb20c07fda5)是改变行为的提交。
虽然我的大脑更大的人似乎想要做这个改变,但调试配置值的来源似乎是适得其反的。我觉得我错过了一些知识。(document #0)后缀实际上有一些我不知道的值吗?
https://stackoverflow.com/questions/57149736
复制相似问题