Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler
来源:互联网 发布:java bigdecimal最大值 编辑:程序博客网 时间:2024/06/06 00:34
转自:https://www.cnblogs.com/EasonJim/p/7056700.html
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
错误:
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)] with root cause
问题解决:
其实这个是版本更新之后,官方取消了这个函数,转而升级了两个参数的方法,改动如下:
@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class, Integer.class }) })
官方的解释如下:
In 3.4.0, StatementHandler#prepare(Connection) has been changed to StatementHandler#prepare(Connection,Integer).
See https://github.com/mybatis/mybatis-3/blob/master/src/main/java/org/apache/ibatis/executor/statement/StatementHandler.java#L33-L34 .
参考:
https://github.com/mybatis/mybatis-3/issues/645
阅读全文
0 0
- Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler
- 【MyBatis】org.apache.ibatis.executor.statement.StatementHandler.prepare(java.sql.Connection)
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map ***
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map
- org.apache.ibatis.builder.IncompleteElementException : Could not find parameter map com.vialove.ais
- Exception: org.apache.ibatis.builder.xml.IncompleteStatementException: Could not find result map....
- "Exception: org.apache.ibatis.builder.xml.IncompleteStatementException: Could not find result map...
- org.apache.ibatis.builder.IncompleteElementException : Could not find parameter map com.vialove.ais
- mybatis使用bug:org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map java
- org.apache.ibatis.builder.xml.IncompleteStatementException: Could not find result map java.util.Map
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map com.gobuy.order.mapp
- 唯快不破:当你在地址栏输入一个URL地址回车后,将会发生什么事情
- Planning mobile robot on Tree (EASY Version) UVA
- 特殊的二街魔方
- 以太坊挖矿软件反抽水-eth 免抽成破解收费小插件 (完美兼容 Claymore 原版内核,长沙矿工,圣骑士,挖矿专家,矿工队长)
- headfirst插入排序
- Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler
- 后缀数组学习总结
- java 双列集合Map及其子实现类
- 小米推送,华为推送,个推,阿里云推送集成(服务端JAVA开发)
- 关于计算机学习的总结
- echarts2的一个地图demo
- matlab 爬虫抓取A股当日每笔成交数据
- 分享一个牛人给java初学者的建议(图文完整版)
- 【算法题】Manacher算法及其扩展