Receiver class com.mchange.v2.c3p0.impl.NewProxyResultSet does not define or inherit an implementati
最近做SSM框架整合测试的时候,spring整合MyBatis的时候,运行测试报错以下:
解决:
面向百度一顿查,然后发现maven工程中c3p0的jar包导的有问题:
错误
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
正确
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>