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
For example via the PropertiesFactoryBean. Use the PropertyPlaceholderConfigurer to configure beans in the context via properties.
You will find PropertyPlaceholderConfigurer examples in the other answers. Here is a PropertiesFactoryBean example :