I want to read the contents of a file in the classpath (in resources/) to a String. Does Spring have a convenience annotation for that?
Something like:
public class MyClass {
@Resource("classpath:data.txt")
private String data;
}
Is something like that available in Spring?