title: What is the relative path for application.properies file below?
body: <p><img src="https://i.stack.imgur.com/8cQCM.png" alt="enter image description here"></p>
  
  <p>application.properties need to be loaded in LoadProperties.java file.</p>
  
  <p>public static Properties loadProperties() {</p>
  
  <pre><code>    Properties props = new Properties();
      try{
          FileInputStream fis = new FileInputStream("application.properties");
          props.load(fis);    
          fis.close();
      }catch(IOException ioe){
          ioe.printStackTrace();
      }
      return props;
  }
  </code></pre>
  
  <p><strong>The above code works fine in normal Java Project but when I add this in Dynamic Web project path not recognized because folder structure is differ</strong></p>
  
  <p>I tried in many ways and got java.io.FileNotFoundException: application.properties (The system cannot find the file specified) error</p>
  
  <p>Any help would be appreciated!</p>