很多同志不想用MybatisPlus自带的分页希望用PageHelper结果失效了
原因解决方案
1.可能是Jar冲突了,pom.xml文件只需要引入以下
<!--pagehelper 在version 下面添加 exclusions依赖(排除) 因为mybatisPlus中包含了-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
</dependency>
2.引入的包是这两个
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
3.MybatisPlus配置类
package com.lifan.config;
impo