As the linked question doesn't really go into details ...
In $CATALINA_BASE/conf/server.xm
l, you need to configure the local server to unpack WARs. Here's the example from my development server:
<Host appBase="webapps" autoDeploy="true" deployOnStartup="true"
deployXML="true" name="localhost" unpackWARs="true">
By default, Tomcat will check for changes to JSP files. In fact, you have to change that for production, as described here.
With these changes in place, you will find your web-app in $CATALINA_BASE/work/Catalina/localhost
(assuming, again, a default install; if you're configuring server name, it won't be localhost
). Edit the file in-place, and the changes will appear when you load the page next.
Is this kind of hot-deploy can be used in a release versioin of my software
Not if you want to avoid hard-to-track-down bugs.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…