在学习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>
完美解决!