title: How do you configure a Spring bean container to load a Java property file?
body: <p>How do you configure a Spring bean container (or application context) to load a Java property file?</p>
  
  <p><a href="http://www.javaworld.com/" rel="noreferrer">JavaWorld</a> article <a href="http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html" rel="noreferrer"><em>Smartly Load Your Properties</em></a> explains how to load property files from the classpath using one of the following resource processing methods in the standard Java library:</p>
  
  <pre><code>ClassLoader.getResourceAsStream ("some/pkg/resource.properties");
  Class.getResourceAsStream ("/some/pkg/resource.properties");
  ResourceBundle.getBundle ("some.pkg.resource");
  </code></pre>
  
  <p>How can you do the same using a Spring bean container?</p>