I have a command that takes a search query in xml format as an argument.
The xml is quite big so I dont want it in the source code, I was thinking if I could put it in the resources folder and somehow read it and replacing a dynamic value (the search word) using a placeholder and shove it into the function.
I'm using Spring Boot 2.
Is there some functionality to do this in the spring framework or should I just create a reader and do it with a string replace?