If this property should remain in the form of the "File" type, you will have to jump through some hoops.
, , bean, Resource, String, Spring ServletContextResource , File Resource.getFile().
public class MyBean {
private File file;
public void setResource(Resource resource) {
this.file = resource.getFile();
}
}
<bean class="MyBean">
<property name="resource" value="/WEB-INF/myfile">
</bean>