How can I load a Spring resource contents and use it to set a bean property or pass it as an argument constructor?
The resource contains free text.
This solution requires Apache Commons IO.
Another solution, suggested by @Parvez, without Apache Commons IO dependency is