使用mybatis分页插件出现错误:com.github.pagehelper.PageException: java.lang.ClassNotFoundException: mysql

问题:使用mybatis分页插件出现以下错误com.github.pagehelper.PageException: java.lang.ClassNotFoundException: mysql

 

原因:插件版本太低时,在配置插件时,该属性<property name="dialect" value="mysql"/>不能省略。

 

解决:

  (1)使用高版本的mybatis分压插件

  (2)加上属性:<property name="dialect" value="mysql"/>

 

参考博客:https://blog.csdn.net/u011560753/article/details/78750119

 

posted @ 2020-05-08 16:34  怪兽不纯粹  阅读(3100)  评论(0)    收藏  举报