首页 > 解决方案 > Spring Boot 2.0.0+ 分页、maven 和 hibernate

问题描述

我正在做一个springboot分页:

repo.findAll (PageRequest.of (page, size) );

似乎不起作用。

在弃用 PageRequest(...) 之后,有人知道在 Spring Boot 2+ 中分页的新方法吗?

提前致谢。

标签: spring-bootpagination

解决方案


我的错误: repo.findAll (PageRequest.of (page, size) ); ...是一种工作方法。谢谢你的时间@karthik R


推荐阅读