From 099953f795fa4bb3a94b3153d8f1fbb72d7550be Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 25 Feb 2016 11:52:34 +0000 Subject: [PATCH] Use system environment property source --- .../cloud/bootstrap/BootstrapApplicationListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java index b3ec9f3b..72961ffe 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java @@ -43,6 +43,7 @@ import org.springframework.core.env.MapPropertySource; import org.springframework.core.env.MutablePropertySources; import org.springframework.core.env.PropertySource; import org.springframework.core.env.StandardEnvironment; +import org.springframework.core.env.SystemEnvironmentPropertySource; import org.springframework.core.io.support.SpringFactoriesLoader; import org.springframework.util.ClassUtils; import org.springframework.util.StringUtils; @@ -334,7 +335,8 @@ public class BootstrapApplicationListener } - private static class ExtendedDefaultPropertySource extends MapPropertySource { + private static class ExtendedDefaultPropertySource + extends SystemEnvironmentPropertySource { private final CompositePropertySource sources; private final List names = new ArrayList<>();