首页 > 其他 > 详细

使用PageHepler分页

时间:2019-01-23 16:57:14      阅读:208      评论:0      收藏:0      [点我收藏+]

首先需要引入依赖

1 <dependency>
2             <groupId>com.github.pagehelper</groupId>
3             <artifactId>pagehelper-spring-boot-starter</artifactId>
4             <version>1.1.2</version>
5         </dependency>

然后再properties或者yml文件配置

1 pagehelper:
2   helperDialect: mysql
3   reasonable: false
4   supportMethodsArguments: true
5   params=count: countSql
PageHelper.startPage(page,size);
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>

使用PageHepler分页

原文:https://www.cnblogs.com/zuoxh/p/10309394.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!