Spring Custom Query with pageable

前端 未结 6 752
自闭症患者
自闭症患者 2020-12-30 07:29

I want to to implement pagination in spring application.I know using repository we can implement pagination but we can not write our own query for data retrieve there are li

6条回答
  •  温柔的废话
    2020-12-30 08:03

    Pageable pageableBase = PageRequest.of(0, request.getSize());
    List  users = userRepository.findAllSignUpComplete(true, pageableBase);
    

    public interface UserRepository extends PagingAndSortingRepository {...

提交回复
热议问题