- 按照github上的教程集成到spring boot
pom文件引用需要改一下,教程的pom文件引用:
工程中要用以下方式
<!--分页-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
</dependency>
- 默认‘合理化分页’参数
按照文档来看,默认的情况应该是:超过数据总量返回为空,但实际用起来默认返回最后一页的数据。
来源:oschina
链接:https://my.oschina.net/u/4258218/blog/3925915