Pageable pageable = PageRequest.of(2,2);    //第一个2表示从第几页开始,第二个2表示显示几条
Page<User> pages= userDao.findAll(pageable);
model.addAttribute("users",pages);
return "list-user"

  

相关文章:

  • 2021-10-19
  • 2021-04-30
  • 2022-12-23
  • 2021-06-11
  • 2021-09-27
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2022-03-04
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案