1、项目为springboot工程
依赖导入为
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.4</version>
</dependency>
在进行运行时发现,分页根本不起作用
2、解决方法
将依赖更换为
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
使用springboot专门的pagehelper启动器。问题解决。