spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.96k stars 1.29k forks source link

client has multi config-servers support? #1975

Open aliciz opened 3 years ago

aliciz commented 3 years ago

Scenario: the company provides a globally unified config-server, but my project provide an internal config-server. Therefore, client needs to configure two or multi config-servers url.

I want a features of properties look like:

spring:
  config:
    import:
      - optional:configserver:http://global-config-server:8888
      - optional:configserver:http://project-config-server:8888
tsemachh commented 2 years ago

Hi

There's some uncertainty for example assume you would like to have different labels for each repo how to achieve it ? If it's same label then composite can be used

ryanjbaxter commented 2 years ago

This should already work, are you finding it doesn't?

tsemachh commented 2 years ago

it works when using same label for the 2 repos. Assume we go with new config approach it should be supported if we list 2 config servers with the ability to give each different label.