使用mybatis分页插件报错:net.sf.jsqlparser.statement.select.PlainSelect.getGroupBy()Lnet/sf/jsqlparse

问题:

使用mybatis的分页插件时报错:net.sf.jsqlparser.statement.select.PlainSelect.getGroupBy()Lnet/sf/jsqlparse

 

原因:在使用mybatis分页插件时,需要依赖 jsqlparser。这个错误表示分页插件版本与依赖版本不匹配。建议多去尝试,高配高,低配低。

我的配置:

 1   <dependency>
 2       <groupId>com.github.pagehelper</groupId>
 3       <artifactId>pagehelper</artifactId>
 4       <version>5.1.10</version>
 5     </dependency>
 6     <dependency>
 7       <groupId>com.github.jsqlparser</groupId>
 8       <artifactId>jsqlparser</artifactId>
 9       <version>3.1</version>
10     </dependency>

参考博客:https://blog.csdn.net/weixin_42336011/article/details/104415100

posted @ 2020-05-07 11:15  Yrc的楚门的世界  阅读(11273)  评论(0编辑  收藏  举报