Mybatis 拦截器报错org.apache.ibatis.executor.statement.StatementHandler.prepare(java.sql.Connection)

出现此错误的原因是MyBatis 3.4.0 之后,StatementHandler的prepare方法做了修改,如下:

 

在args = { Connection.class }中添加第二个参数,即   

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

posted on 2017-11-22 21:00  范兵  阅读(3533)  评论(0编辑  收藏  举报

导航