老师这个老提示c3p0错误是怎么回事啊

来源:8-7 商品编辑之后端开发上

weixin_慕设计1299737

2019-10-24

警告: The web application [o2o] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge5tta51xt8ds04co774|712789de]-HelperThread-#0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method)

写回答

1回答

翔仔

2019-10-25

同学好,这个并不是错误呢,警告信息如果不影响功能的话可以忽略。如果要解决掉这个警告,可以在spring-dao.xml

里面的 

<bean id="dataSource" 

class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">

添加上 destroy-method="close"

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程