我在 application.properties 文件中有所有常见的属性。版本特定属性位于 github 的 version1 和 version2 文件夹中。
order-service(base folder)
application.properties
version1
app-dev.properties
version2
app-dev.properties
如何在 application.yml 文件中设置配置以确保云配置服务器在版本 1 url 被命中时返回版本 1 道具以及常见道具。下面是我现在必须从基本文件夹中获取道具的配置,它怎么可能修改为实现上述。
spring:
cloud:
config:
server:
git:
uri: https://github.company.com/orders-properties
username: orders
password: orders
search-paths: order-service