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
2024-10-21 10:11:10
错误:
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).
参考:
https://github.com/mybatis/mybatis-3/issues/645
最新文章
- 【技巧】为ComboBox添加自动提示
- 【5集iCore3_ADP演示视频】5-4 iCore3与应用开发平台的组装与拆卸
- IOS开发 - TextField 控件详细
- 装饰模式(Decorator pattern)
- Unity Sample Bootcamp
- VMware 虚拟机使用 NAT 方式联网
- BIP_Oracle Erp标准银行接口XML文件(案例)(待整理)
- idea 破解服务器
- 【原】SparkContex源码解读(一)
- 组合计数(polya计数):SGU 282 Isomorphism
- ||和 &;&; 符号的赋值运用(转)
- python - Django: Converting an entire set of a Model's objects into a single dictionary - Stack Overflow
- ssm maven spring AOP读写分离
- http请求抓包神器-Fiddler(记录和检查你电脑的所有http通讯)
- c++学习过程
- 在Docker环境下部署Kafka
- 计蒜客--移除数组中的重复元素 (set)
- django+xadmin+djcelery实现后台管理定时任务
- 服务器搭建3 安装libevent2.0.20
- 网页设计师必知的10则SEO