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 is one way of doing it without using any external library.. default provided by spring.. environment.properties file contains key value pairs...reference each value with ${key}
here in my example, I am keeping database props
classpath:environment.properties