title: Load properties file in servlet?
body: <p>I have a java maven project. i have placed a properties file in <code>src/main/resources</code> folder.</p>
  
  <pre><code>src/main/resources
    |
    |___properties
          |
          |
          |___custom_en_US.properties
  </code></pre>
  
  <p>I am loading properties file as below in servlet.</p>
  
  <pre><code>ResourceBundle bundle = ResourceBundle.getBundle("classpath:properties/custom", request.getLocale());
  </code></pre>
  
  <p>but above line is throwing exception saying resource not found. How can i give path to properties file? Please help me.</p>
  
  <p>Thanks!</p>