I have web app defined as follows:
<Context path="/myApp" reloadable="true" docBase="/myapps/myApp1">
From Tomcat doc only changes to web.xml or Context xml should trigger redeployment However I found out that even when I change a simple text file under WEB-INF/classes app still gets redeployed:
touch /myapps/myApp1/WEB-INF/classes/app.properties
So how exactly does Tomcat auto-deployment feature works?
When you put the "reloadable" attribute to "true" then it also monitors classes in "/WEB-INF/classes/" and reload the web application if a change is detected.
you may refer the documentation here and search for attribute "reloadable".
What you are searching is the attribute autoDeploy in the documentation.
I hope this is helpful for you and please let me know if you have any doubt.
Thanks, Nishant
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.