Hello, I recently asked a slightly similar question, but it turned out that it was not exactly what I needed.
I have a project spring mvc + maven. The project reads parameters from the src\main\resources\application.properties file.
After deploying to Glassfish, this file is here: glassfish\domains\domain1\applications\AppName\WEB-INF\classes\application.properties
In the Sping MVC itself, the file is loaded in this way:
<context:property-placeholder location="classpath:application.properties" /> I need to exclude. Properties .properties from the war, and that the project should look for them here: glassfish\domains\domain1\config (as if this happened, if it were not a maven project).
Please advise how I can do this.