在学习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>
完美解决!
标签:下面,java,错误,兼容问题,abstract,mybatis,mysql,Mybatis 来源: https://www.cnblogs.com/xingzhixing/p/15034273.html