Skip to content

Commit

Permalink
Merge branch 'master' into fix-2768
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyiam authored Nov 25, 2019
2 parents a74a005 + 5daa088 commit b4aac3f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public class ApolloApplicationContextInitializer implements
public void initialize(ConfigurableApplicationContext context) {
ConfigurableEnvironment environment = context.getEnvironment();

String enabled = environment.getProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "false");
if (!Boolean.valueOf(enabled)) {
if (!environment.getProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, Boolean.class, false)) {
logger.debug("Apollo bootstrap config is not enabled for context {}, see property: ${{}}", context, PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED);
return;
}
Expand Down

0 comments on commit b4aac3f

Please sign in to comment.