I am running in Tomcat 9 an app that needs to read several .config files but I get an java.io.IOException
.
These .config files are located in WebContent
folder.
How can I tell Tomcat to read this path? Can be related to IntelliJ settings for the project?
This is how is loaded the config file:
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
InputStream is = classLoader.getResourceAsStream(this.configFile);
Value of this.configFile is: cnp-filter.config