各位大神好,本人初学mybatis,正在做一个项目,由于查询数据量较大,要用到mybaitis的物理分页技术,参考博客如下http://www.cnblogs.com/samkin/articles/2864689.html,但是在这块代码报错,@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class }) })
报错信息为org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.plugin.PluginException: Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.statement.StatementHandler.prepare(java.sql.Connection) 错误,本人用的mybatis的jar包版本是3.4.1,请大神帮忙看看,不胜感激
我点进StatementHandler是可以看到lib里有这个方法的,public interface StatementHandler {
Statement prepare(Connection connection)
throws SQLException;
@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { java.sql.Connection.class }) })
这样写也不行