Spring / Spring Interview questions II
How do you read property files using Spring?
Using PropertyPlaceholderConfigurer, a property resource configuring bean that resolves placeholders in bean property values of context definitions. It pulls values from a properties file into bean definitions.
The default placeholder syntax follows ${...}.
As of Spring 3.1, PropertySourcesPlaceholderConfigurer should be used preferred over this implementation; it is more flexible through taking advantage of the Environment and PropertySource mechanisms also made available in Spring 3.1.
More Related questions...