学习web也有几天了,今天把tomcat改成7.0的之后老是出现严重警告:
严重: The web application [/struts2_0100] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10](value[com.opensymphony.xwork2.inject.ContainerImpl$10@169bc15]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@2cb44]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
后来终于在网上找到了解决方案之一:先把服务器停掉,然后部署,再重启服务器,这样是不会出现这样的警告了,记住不要在服务器运行的时候重新部署应用!
和大家分享下!