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

NativeEnvironmentRepository loads property sources in the wrong order #859

Open mjcurrier opened 6 years ago

mjcurrier commented 6 years ago

http://localhost:8888/account-service,security-service,generic-service/stg

spring.cloud.config.server.native.searchLocations=classpath:/configs/{application}

results in

"name": "classpath:/configs/generic-service/generic-service-stg.properties", "name": "classpath:/configs/security-service/security-service-stg.yml", "name": "classpath:/configs/account-service/account-service-stg.properties", "name": "classpath:/configs/generic-service/generic-service.properties", "name": "classpath:/configs/account-service/account-service.properties",

spencergibb commented 6 years ago

Why do you think it is the wrong order?

mjcurrier commented 6 years ago

My experience in the past, and using github repository is that it will load in the order defined like:

spring.cloud.config.name=account-service,security-service,generic-service