报错
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.AbstractMethodError: Receiver class com.mchange.v2.c3p0.impl.NewProxyResultSet does not define or inherit an implementation of the resolved method abstract isClosed()Z of interface java.sql.ResultSet.
原因
c3p0连接池版本太低,更换就行。
解决方案一
<!-- https://mvnrepository.com/artifact/com.mchange/c3p0 -->
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.5</version>
</dependency>
解决方案二
在之前的maven的pom.xml中更改jar包的版本,在target文件中同样存在之前版本,再导入造成冲突,右键run maven-maven-clean, maven-package解决问题。