java.lang.NoSuchMethodException

mac2022-06-30  99

错误信息:   Caused by: org.apache.ibatis.plugin.PluginException: 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) at org.apache.ibatis.plugin.Plugin.getSignatureMap(Plugin.java:87) at org.apache.ibatis.plugin.Plugin.wrap(Plugin.java:44) at com.cnquanquan.cnqq.utils.plugins.PagePlugin.plugin(PagePlugin.java:102) at org.apache.ibatis.plugin.InterceptorChain.pluginAll(InterceptorChain.java:31) at org.apache.ibatis.session.Configuration.newExecutor(Configuration.java:553) at org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.openSessionFromDataSource(DefaultSqlSessionFactory.java:96)   解决方法:   在签名StatementHandler的时候, 按照当前版本的构造方法显式的指定参数

转载于:https://www.cnblogs.com/txhy/p/5826171.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)