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

如果你在使用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")


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值