SpingMVC registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the we

来源:互联网 发布:手机淘宝免费开店流程 编辑:程序博客网 时间:2024/04/29 18:24

如果你在使用SpringMVC时,启动tomcat时发现有如下错误:

严重: Error listenerStart
一月 02, 2014 8:07:54 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
一月 02, 2014 8:07:54 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
一月 02, 2014 8:07:54 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1f7bce1]) and a value of type [org.springframework.cglib.proxy.Callback[]] (value [[Lorg.springframework.cglib.proxy.Callback;@1919134]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.


你也检查了各种配置的问题,还是无济于事。那么请仔细看一下你的Controller类里面有没有重复的@RequestMapping("/xxxx")


0 0
原创粉丝点击