2019-06-12

Spring不使用数据库查询分页

```java
List content = your result set;
Pageable pageable= new PageRequest(int page, int size);
long total = cound found elements;
PageImpl pager = new PageImpl(content,pageable,cound );
```

没有评论:

发表评论