title: Java Spring - How to use classpath to specify a file location?
body: <p>How can I use the classpath to specify the location of a file that is within my Spring project?</p>
  
  <p>This is what I have currently:</p>
  
  <pre><code>FileReader fr = new FileReader("C:\\Users\\Corey\\Desktop\\storedProcedures.sql");
  </code></pre>
  
  <p>This is hardcoded to my Desktop. What I would like is to be able to use the path to the file that is in my project.</p>
  
  <pre><code>FileReader fr = new FileReader("/src/main/resources/storedProcedures.sql");
  </code></pre>
  
  <p>Any suggestions?</p>