|
@@ -24,6 +24,8 @@ public class CustomEnvironmentPostProcessor implements CustomConfigProcessor, En
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ EnvProperty.initEnvironment(environment);
|
|
|
+
|
|
|
Boolean configCenterEnabled = environment.getProperty(ConfigConstants.CONFIG_CENTER_ENABLED, Boolean.class, false);
|
|
|
if (!configCenterEnabled) {
|
|
|
return;
|
|
@@ -41,8 +43,6 @@ public class CustomEnvironmentPostProcessor implements CustomConfigProcessor, En
|
|
|
CustomMapPropertySource customMapPropertySource = new CustomMapPropertySource(ConfigConstants.CUSTOM_PROPERTY_SOURCE, remoteProperties);
|
|
|
environment.getPropertySources().addLast(customMapPropertySource);
|
|
|
|
|
|
- EnvProperty.initEnvironment(environment);
|
|
|
-
|
|
|
if (environment.getProperty("debug", Boolean.class, false)) {
|
|
|
this.printPropertySources(environment.getPropertySources());
|
|
|
}
|