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