Browse Source

Polishing

pull/26592/head
Sam Brannen 4 years ago
parent
commit
db5be44ff4
  1. 4
      spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

4
spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

@ -894,8 +894,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader @@ -894,8 +894,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
beanFactory.getBean(CONVERSION_SERVICE_BEAN_NAME, ConversionService.class));
}
// Register a default embedded value resolver if no bean post-processor
// (such as a PropertyPlaceholderConfigurer bean) registered any before:
// Register a default embedded value resolver if no BeanFactoryPostProcessor
// (such as a PropertySourcesPlaceholderConfigurer bean) registered any before:
// at this point, primarily for resolution in annotation attribute values.
if (!beanFactory.hasEmbeddedValueResolver()) {
beanFactory.addEmbeddedValueResolver(strVal -> getEnvironment().resolvePlaceholders(strVal));

Loading…
Cancel
Save