## The error may exist in SQL Mapper Configuration]) but failed to remove it when the web 报错

博主遇到报错,起初以为是自己写的Mapper.xml有问题,多次更改仍报错。后来通过按shift+shift搜索文件,发现项目中存在同名Mapper文件,将其改成不同名称即可解决问题。

报错信息:

严重: The web application [/cc] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 09, 2019 11:13:21 上午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
严重: The web application [/cc] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1f942568]) and a value of type [org.apache.ibatis.executor.ErrorContext] (value [
### The error may exist in SQL Mapper Configuration]) 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.

起先一直以为是自己写的Mapper.xml问题,几番更改,结果还是报一样错,我都有点怀疑人生,后来按shift+shift搜索文件,才发现项目中有同名Mapper文件……

改成不同即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值