I have a maven Spring project, there is xml file inside src/main/resources/xyz.xml. How can I read it inside spring MVC controller.
xml
src/main/resources/xyz.xml
I am us
For spring based application you can take advantage of ResourceUtils class.
File file = ResourceUtils.getFile("classpath:xyz.xml")