title: spring folder content resource injected in bean
body: <p>I need to pass a folder (java.io.File) as a function parameter.</p>
  
  <p>I tried to just declare the location of the folder, but it looks in SERVER_HOME (/home/user/tomcat).</p>
  
  <p>So my next try is to inject a File (directory) which is located in WEB-INF/myFolder.</p>
  
  <p>my first try failed:  </p>
  
  <pre><code>&lt;bean name="path" class="java.io.File"&gt;  
      &lt;constructor-arg value="classpath:WEB-INF/myFolder" /&gt;  
  &lt;/bean&gt;
  </code></pre>
  
  <p>But it  looks for /home/user/tomcat/classpath:WEB-INF/myFolder</p>
  
  <p>I've been messing around but I can't figure out how to do it.</p>
  
  <p>Any help or advice would be great.</p>
  
  <p>Thank you all!</p>