使用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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM