问题还原:
Caused by: java.lang.NoSuchMethodError: net.sf.jsqlparser.statement.select.PlainSelect.getGroupByColumnReferences()Ljava/util/List;
at com.github.pagehelper.parser.CountSqlParser.isSimpleCount(CountSqlParser.java:156)
at com.github.pagehelper.parser.CountSqlParser.sqlToCount(CountSqlParser.java:135)
at com.github.pagehelper.parser.CountSqlParser.getSmartCountSql(CountSqlParser.java:94)
at com.github.pagehelper.dialect.AbstractHelperDialect.getCountSql(AbstractHelperDialect.java:81)
at com.github.pagehelper.PageHelper.getCountSql(PageHelper.java:77)
at com.github.pagehelper.PageInterceptor.executeAutoCount(PageInterceptor.java:193)
at com.github.pagehelper.PageInterceptor.intercept(PageInterceptor.java:113)
....
解决:
添加jar包:
<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>1.4</version>
</dependency>