From 19cd6be001765eb6fe854d66fd285a29373300b6 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 25 Oct 2014 08:15:58 +0100 Subject: [PATCH] Add @Order to the default property source locator --- .../cloud/config/client/ConfigServicePropertySourceLocator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java b/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java index 010b131b..d2e7423c 100644 --- a/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java +++ b/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java @@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.config.Environment; import org.springframework.cloud.config.PropertySource; +import org.springframework.core.annotation.Order; import org.springframework.core.env.CompositePropertySource; import org.springframework.core.env.MapPropertySource; import org.springframework.http.HttpEntity; @@ -44,6 +45,7 @@ import org.springframework.web.util.UriComponentsBuilder; * */ @ConfigurationProperties("spring.cloud.config") +@Order(0) public class ConfigServicePropertySourceLocator implements PropertySourceLocator { private String env = "default";