mybatis 自定义拦截器分页错误

MyBatis3.4.0以上的分页插件错误:Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.stateme

问题解决:

其实这个是版本更新之后,官方取消了这个函数,转而升级了两个参数的方法,改动如下:新增Integer.class

@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class, Integer.class }) })

猜你喜欢

转载自my.oschina.net/u/2263802/blog/1476134