---
title: "springboot分页插件"
author: "caichenglong"
date: "2019-01-10T17:24:14Z"
tags: []
categories: ["编程语言"]
slug: "springboot"
draft: false
lastmod: "2019-01-10T17:24:14Z"
id: 2436423
url: "https://caichenglong.iteye.com/blog/2436423"
---

```
<dependency>
    <groupId>com.github.pagehelper</groupId>
    <artifactId>pagehelper-spring-boot-starter</artifactId>
    <version>1.2.3</version>
</dependency>
```

  

```
/**
 * 分页查询
 *
 * @param paramVo
* @return
*/
@Override
public List<OwnerOrderSjtListResponseVo> getOwnerOrderSjtListPage(OwnerOrderSjtVo paramVo) {
    //使用分页插件,核心代码就这一行
PageHelper.startPage(paramVo.getPageNo(), paramVo.getPageSize());
List<OwnerOrderSjtListResponseVo> sjtListResponseVoList = ownerOrderSjtDao.getOwnerOrderSjtList(paramVo);
    return sjtListResponseVoList;
}
```

 

原文：https://blog.csdn.net/aiyaya\_/article/details/79178984