首页 > 技术文章 > C3P0遇到的问题

Liuyunsan 2021-11-22 21:14 原文

`java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyPreparedStatement.isClosed()Z is abstract

at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.isClosed(NewProxyPreparedStatement.java)
at org.apache.ibatis.executor.BaseExecutor.closeStatement(BaseExecutor.java:285)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:65)

`
原因

使用的c3p0的相关jar包版本过低。
解决

将c3p0-0.9.1.2.jar 换成 c3p0-0.9.5.2.jar或更高版本。

推荐阅读