acejokerzj 2016-09-05 02:32 采纳率: 0%
浏览 965

定义mybatis物理分页拦截器,报错

各位大神好,本人初学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,请大神帮忙看看,不胜感激

  • 写回答

2条回答 默认 最新

  • acejokerzj 2016-09-05 02:44
    关注

    我点进StatementHandler是可以看到lib里有这个方法的,public interface StatementHandler {

    Statement prepare(Connection connection)
    throws SQLException;

    评论

报告相同问题?

悬赏问题

  • ¥15 Matlab问题解答有两个问题
  • ¥50 Oracle Kubernetes服务器集群主节点无法访问,工作节点可以访问
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架
  • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。
  • ¥15 stm32的can接口不能收发数据
  • ¥15 目标检测算法移植到arm开发板
  • ¥15 利用JD51设计温度报警系统
  • ¥15 快手联盟怎么快速的跑出建立模型