问答详情
源自:3-5 拦截器实现分页Ⅳ

异常。。。。。

Caused by: 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(com.mysql.jdbc.Connection, java.lang.Integer)
    at org.apache.ibatis.plugin.Plugin.getSignatureMap(Plugin.java:85)

提问者:洋妞honey 2017-03-17 09:46

个回答

  • 慕斯卡2336669
    2019-02-22 15:19:52

    我也遇到了和你一样的问题,也是这个错误

  • protry
    2017-05-06 20:44:11

    NoSuchMethodException:org.apache.ibatis.executor.statement.StatementHandler.prepare(com.mysql.jdbc.Connection, java.lang.Integer)

    StatementHandler这个接口里面现在是两个参数了,@Intercepts({@Signature(type = StatementHandler.class,method = "prepare", args = {Connection.class, Integer.class})})

  • 洋妞honey
    2017-03-17 15:38:13

    原来是connection类的包导错了。应该导com.sql.Connection