Creating Pagination in Spring Data JPA

后端 未结 2 1497
-上瘾入骨i
-上瘾入骨i 2021-01-12 20:39

I am trying to implement pagination feature in Spring Data JPA. I am referring this Blog My Controller contains following code :

 @RequestMapping(value=\"/o         


        
2条回答
  •  迷失自我
    2021-01-12 21:41

    The constructors of Pageable are deprecated, use of() instead:

    Pageable pageable = PageRequest.of(0, 20);
    

提交回复
热议问题