Good day. There is a config.properties file in the project resources. When building the project, IDE uploads the file to the WEB-INF/classes/ WAR file directory. And now the question directly: how to determine the path to the folder in which the application will be deployed? And where will the file be located?
The problem is that when you deploy an application (at least through the programming environment), all files are moved to the generated folder with what seems to be a random name. Therefore, even using the relative path from the server's home directory ( System.getPropertie("jboss.home.dir") ), the file cannot be found.
Is there any method to uniquely determine the location of deployed files?