我们先来看看这个antiResourceLocking到底是干什么的!If true, Tomcat will prevent any file locking. This will significantly impact
startup time of applications, but allows full webapp hot deploy and undeploy on
platforms or configurations where file locking can occur. If not specified, the
default value is false.
Please note that setting this to true has some side effects, including the
disabling of JSP reloading in a running server: see Bugzilla 37668.
Please note that setting this flag to true in applications that are outside the
appBase for the Host (the webapps directory by default) will cause the
application to be deleted on Tomcat shutdown. You probably don‘t want to do
this, so think twice before setting antiResourceLocking=true on a webapp that‘s
outside the appBase for its Host.