PropertySourcesPlaceholderConfigurer()
Specialization of PlaceholderConfigurerSupport that resolves ${...} placeholders within bean definition property values and @Value annotations against the current Spring Environment and its set of PropertySources.
This class is designed as a general replacement for PropertyPlaceholderConfigurer in Spring 3.1 applications. It is used by default to support the property-placeholder element in working against the spring-context-3.1 XSD, whereas spring-context versions <= 3.0 default to PropertyPlaceholderConfigurer to ensure backward compatibility. See the spring-context XSD documentation for complete details.
Any local properties (e.g. those added via #setProperties, #setLocations 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 org.springframework.core.env.ConfigurableEnvironment and related javadocs for details on manipulating environment property sources.
Author
Chris Beams
Since
3.1
See Also
org.springframework.core.env.ConfigurableEnvironmentorg.springframework.beans.factory.config.PlaceholderConfigurerSupportorg.springframework.beans.factory.config.PropertyPlaceholderConfigurer