I have a text file which contains data. I want to set this data to a String instance variable.
I know I can do it using Java I/O, read the file and set it’s content to String variable.
But is there a simplistic way to initialize the String using Spring configuration file?
Try using properties file with this xml tags:
And use the values as ${your_key}