类 PropertySourcesPlaceholderConfigurer

java.lang.Object
cn.taketoday.core.io.PropertiesLoaderSupport
所有已实现的接口:
Aware, BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, EnvironmentAware, cn.taketoday.core.Ordered, cn.taketoday.core.PriorityOrdered

public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerSupport implements EnvironmentAware
Specialization of PlaceholderConfigurerSupport that resolves ${...} placeholders within bean definition property values and @Value annotations against the current Framework Environment and its set of PropertySources.

Any local properties (e.g. those added via PropertiesLoaderSupport.setProperties(java.util.Properties), PropertiesLoaderSupport.setLocations(cn.taketoday.core.io.Resource...) et al.) are added as a PropertySource. Search precedence of local properties is based on the value of the localOverride property, which is by default false meaning that local properties are to be searched last, after all environment property sources.

See ConfigurableEnvironment and related javadocs for details on manipulating environment property sources.

从以下版本开始:
4.0 2021/12/12 14:39
作者:
Chris Beams, Juergen Hoeller, Harry Yang
另请参阅: