How do you configure a Spring bean container (or application context) to load a Java property file?
JavaWorld article Smartly Load Your Properties explains how to load p
Your beans.xml
file should have a PropertyPlaceholderConfigurer
:
classpath:some/pkg/resource.properties
value
And then you can reference the properties as such elsewhere in the beans.xml
:
....
For an article about this, check out http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share