I have a webapplication on Java spring. I need to read application specific settings when the application will be initialized. I have added app.properties
under WebContent/WEB-INF
but I am not able to get that file from the class.
If I provide
InputStream input = servletContext.getResourceAsStream("WEB-INF/spring.properties");
prop.load(input);
then it is showing file is not present. I can not use absolute path. What will be the path?