How to read files in my WEB-INF directory?

I am running a Java web application using Tomcat and I want to read the file Propertieslocated in my directory WEB-INF. How can I get InputStreamin this file Propertiesso that I can read it?

+3
source share
1 answer

ServletContext.getResource/ getResourceAsStream, IIRC.

+3
source

Source: https://habr.com/ru/post/1706136/


All Articles