title: java.io.FileNotFoundException: class path resource cannot be opened because it does not exist
body: <p>I am trying to set the configuration location for my Project but I keep getting the following error:</p>
  
  <blockquote>
    <p>java.io.FileNotFoundException: class path resource
    [main/resources/app-context.xml] cannot be opened because it does not
    exist</p>
  </blockquote>
  
  <p>I have my project set up like this:</p>
  
  <p><img src="https://i.stack.imgur.com/fqqSI.jpg" alt="enter image description here"></p>
  
  <p>And I have my code set up as:</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext(configLocation: "main/resources/app-context.xml");
  </code></pre>
  
  <p>How can I fix this?</p>