title: Loading a .properties file with Spring (Java)
body: <p>I am having an issue with loading a .properties file. </p>
  
  <p>The file is called "businessmessages_en_US.properties" and it is stored in "src/main/resources/config/i18n". I have added "src/main/resources" to the build path and in my spring xml I have created a bean: </p>
  
  <pre><code>&lt;bean name="messageResource" id="messageResource"
      class="[package].CustomResourceBundleMessageSourceImpl"&gt;
      &lt;property name="basename"&gt;
          &lt;value&gt;classpath*:config/i18n/*.properties&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>Note that the "basename" property must be a string according to the class</strong></p>
  
  <p>Yet every time I run my program, the logger shoots a message: </p>
  
  <pre><code>01 Jul 2013 09:12:34,267 WARN [package].CustomResourceBundleMessageSourceImpl - ResourceBundle [classpath*:config/i18n/*.properties] not found for MessageSource: Can't find bundle for base name classpath*:config/i18n/*.properties, locale en_US 
  </code></pre>
  
  <p>I need the program to read this file so that the logger can have the correct values. Any help would be greatly appreciated. Thank you!</p>