当前使用版本(必填,否则不予处理)

3.4.3.4

该问题是如何引起的?(确定最新版也有问题再提!!!)

我在使用SqlRunner.db().selectPage()分页查询时分页参数无效,请问,是我的写法有问题吗

重现步骤(如果有就写完整)

报错信息

MyBatis-Plus SqlRunner.db().selectPage()分页查询无效

Comment From: miemieYaho

分页插件加了吗?

Comment From: conservators

分页插件加了吗?

使用旧版本的PaginationInterceptor方式可以分页,新版本的插件MybatisPlusInterceptor启动出现错误 ,我使用的是mysql8.0 MyBatis-Plus SqlRunner.db().selectPage()分页查询无效

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor.defaultCountSelectItem(PaginationInnerInterceptor.java:79)

The following method did not exist:

net.sf.jsqlparser.statement.select.SelectExpressionItem.withAlias(Lnet/sf/jsqlparser/expression/Alias;)Lnet/sf/jsqlparser/statement/select/SelectExpressionItem;

The method's class, net.sf.jsqlparser.statement.select.SelectExpressionItem, is available from the following locations:

jar:file:/D:/mavenlocal/com/github/jsqlparser/jsqlparser/3.1/jsqlparser-3.1.jar!/net/sf/jsqlparser/statement/select/SelectExpressionItem.class

It was loaded from the following location:

file:/D:/mavenlocal/com/github/jsqlparser/jsqlparser/3.1/jsqlparser-3.1.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of net.sf.jsqlparser.statement.select.SelectExpressionItem

Comment From: miemieYaho

jsqlparser版本冲突了

Comment From: conservators

jsqlparser版本冲突了

好滴,我换个版本,谢谢