PageRequest constructors have been deprecated

前端 未结 3 1502
粉色の甜心
粉色の甜心 2020-12-08 09:30

I\'m working the Spring Data Commons v2+ snapshot, and I see that the constructors for a PageRequest have been deprecated. This appears to have occurred betwee

3条回答
  •  囚心锁ツ
    2020-12-08 10:12

    You can use the following solution to solve your problem:

    Page users=userService.findByUserType(id,PageRequest.of(1, 3));
    

提交回复
热议问题