問題:
使用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:
