在学习Mybatis时出现下面的错误
1 java.lang.AbstractMethodError: Method com/mysql/jdbc/PreparedStatement.isClosed()Z is abstract
查阅资料后发现是Mybatis和mysql版本兼容问题
现在使用
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.2.7</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.46</version> </dependency>
完美解决!
原文地址:https://www.cnblogs.com/Xphse-zhm/p/10383032.html
时间: 2024-10-22 18:13:02