This is a frequently asked question in Spring interview questions for senior developers.   In addition to the CrudRepository, there is a PagingAndSortingRepository that adds additional methods to ease paginated access to entities: public interface PagingAndSortingRepository extends CrudRepository {
Iterable findAll(Sort sort);
Page findAll(Pageable pageable);
} Accessing the third page of Userby a page size of 10 you could simply do something like this PagingAndSortingRepositoryLong> repository = // ... get access to a bean
Page users = repository.findAll(new PageRequest(2, 10));