In my spring xml file I have a bean:
<bean id="config" class="com.example.BeanConfig">
<property name="description" value="Long Description Here" />
</bean>
Instead of defining the long string inline, I want to read the string from description.txt. Is there any way to do this in the xml without writing a Java class to handle it?
I already came across How do I load a resource and use its contents as a string in Spring but I am unclear how to get the bean contents into a property value.