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
Here is one way of loading classpath resources.
Resource resource = applicationContext.getResource("classpath:xyz.xml"); InputStream is = resource.getInputStream();