Browse Source

Use system environment property source

pull/94/head
Dave Syer 9 years ago
parent
commit
099953f795
  1. 4
      spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java

4
spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java

@ -43,6 +43,7 @@ import org.springframework.core.env.MapPropertySource; @@ -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 @@ -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<String> names = new ArrayList<>();

Loading…
Cancel
Save