title: Get a file under WEB-INF using Spring
body: <p>I am trying to get a File under my WEB-INF/classes folder using Spring.  </p>
  
  <pre><code>&lt;bean id="myBean" class="path.to.MyBean" &gt;
      &lt;property name="myFile"&gt;
          &lt;value&gt;file:WEB-INF/classes/myFile.foo&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>However, when I print out the myFile's File Path from inside MyBean it is:</p>
  
  <pre><code>c:\\apache\bin\WEB-INF\classes\myFile.foo
  </code></pre>
  
  <p>So it is not using the relative deployment path.</p>
  
  <p>Am I doing something wrong?</p>