https://blog.csdn.net/Simonxu/article/details/1643124
最近在写struts2应用的时候。发现deploy到tomcat的应用经常无法完全undeploy,必须restart tomcat后才能完全undeploy。 应该是一些jar资源被锁定。要解决这个问题。只要在web/META-INF下建立一个context.xml文件。
<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true" antiResourceLocking="true"></Context>
把防止资源锁定的选项设置为true就可以了。
作者:simonxu
来源:CSDN
原文:https://blog.csdn.net/Simonxu/article/details/1643124
另外,可以把所有用户session清除,然后再undeploy。
网友评论