Creating a new SqlSession异常
分页的时候出现Creating a new SqlSession异常
首先把异常信息打印出来,在全局的异常类里面把异常信息打印出来
然后看到在这个异常
再搜Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.statement.StatementHandler.prep
找出原因
解决
遇到问题的时候先debug,找不到了就把异常信息打印出来
//打印日志信息
e.printStackTrace();