How do you configure a Spring bean container to load a Java property file?
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 property files from the classpath using one of the following resource processing methods in the standard Java library: ClassLoader.getResourceAsStream ("some/pkg/resource.properties"); Class.getResourceAsStream ("/some/pkg/resource.properties"); ResourceBundle.getBundle ("some.pkg.resource"); How can you do the same using a Spring bean container? The Spring Framework Reference Documentation (2.5.x) gives two examples of how to