错误:

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

最新文章

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

热门文章

  1. Java之IO流(字节流,字符流)
  2. 如何使用android design support library
  3. 百度地图JS API不能使用position:fixed
  4. spring-session使用配置(分布式共享session配置)
  5. Tensorflow Object_Detection 目标检测 笔记
  6. 【位运算】判断一个数是否为2的n次方
  7. mysql 优化总结
  8. windows10 conda2 使用caffe训练训练自己的数据
  9. 在Emacs中画思维导图
  10. BZOJ第一页刷题计划