My web.xml is different in development and production environments. For example, in a development environment, there is no need for security restrictions.
I usually deploy a new version of an application as follows:
- Export the Eclipse project to WAR.
- Upload the WAR to the server.
- relocate.
The problem is that before exporting I have to manually disable the security restrictions in web.xml.
How do you solve this problem?
In some articles, I also came across the opinion that "web.xml rarely changes." But how does web.xml not change if it is exported to WAR with every update?
Thanks in advance!
java eclipse web-applications
Andrey Minogin
source share