<!--1. 引入pagehelper 依赖-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
2.增加到xml配置中 #分页插件配置 pagehelper: helper-dialect: mysql reasonable: true support-methods-arguments: true params: count=countSql
3.//直接放在查询前一步 PageHelper.startPage(bean.Page(), bean.Limit());//
//page页码,limit每页大小