Tomcat: hot loading and hot deployment configuration (succinct and clear)

Tomcat: hot loading and hot deployment configuration (succinct and clear)


foreword

Hot deployment is to redeploy the project when the server is running, and hot loading is to reload the class at runtime to upgrade the application.


1. Hot loading

Hot loading: set reloadable="true" in server.xml -> context attribute

<Context docBase="xxx" path="/xxx" reloadable="true" />  

2. Hot deployment

Hot deployment: set autoDeploy="true" in server.xml -> context attribute

<Context docBase="xxx" path="/xxx" autoDeploy="true"/>

Well enough:

<Host name="localhost"  appBase="webapps"  
            unpackWARs="true" autoDeploy="true"  
            xmlValidation="false" xmlNamespaceAware="false">  
<Context docBase="xxx" path="/xxx"/>   
</Host>  

Tomcat's hot loading/hot deployment analysis: Tomcat's hot loading/hot deployment
Tomcat's hot loading/hot deployment analysis: Tomcat hot deployment and hot loading

For more methods of hot loading and hot deployment, please refer to: tomcat hot loading and hot deployment, three methods

Guess you like

Origin blog.csdn.net/qq_46119575/article/details/131577848