From 4d1d27dfbade9e50bdb1e6d09ccfd6e30b4cda97 Mon Sep 17 00:00:00 2001 From: shenhuaxin Date: Wed, 25 May 2022 00:02:35 +0800 Subject: [PATCH] feat: add a config adjust the property source overriden behavior --- .../apollo/spring/config/PropertySourcesProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/config/PropertySourcesProcessor.java b/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/config/PropertySourcesProcessor.java index 6328b3c1b4d..3210dad870a 100644 --- a/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/config/PropertySourcesProcessor.java +++ b/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/config/PropertySourcesProcessor.java @@ -106,7 +106,7 @@ private void initializePropertySources() { if (environment.getPropertySources() .contains(PropertySourcesConstants.APOLLO_BOOTSTRAP_PROPERTY_SOURCE_NAME)) { - if (!isOverrideSystemProperties(environment)) { + if (isOverrideSystemProperties(environment)) { // ensure ApolloBootstrapPropertySources is still the first ensureBootstrapPropertyPrecedence(environment); }