private void refreshCachedProperties() { PropertySources propertySources = environment.getPropertySources(); propertySources.forEach(this::refreshPropertySource); }
private void refreshCachedProperties() { PropertySources propertySources = environment.getPropertySources(); propertySources.forEach(this::refreshPropertySource); }
private void mergeProperties(PropertySourcesPlaceholderConfigurer configurer) { PropertySources sources = configurer.getAppliedPropertySources(); sources.forEach(source -> { Object env = source.getSource(); if (env instanceof ConfigurableEnvironment) { ConfigurableEnvironment ssenv = (ConfigurableEnvironment) env; ssenv.merge(localenv); localenv.merge(ssenv); } }); }