java.lang.NoSuchMethodException: org.apache.ibatis.executor.statement.StatementHandler.prepare(java.sql.Connection)

此错误是由于版本造成的,如果使用mybatis3.4版本以上,配置拦截器规则应增加Intger

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

 

posted @ 2016-11-13 21:56  Zshun  阅读(6014)  评论(1编辑  收藏  举报