Spring Data JPA

限制数量

top first
findFirst10ById()
findTop30ById()
List people = userRepositor.findByName("xx", new Sort(Direction.ASC, "age"));
Page people2 = userRepositor.findByName("xx", new PageRequest(0, 10));

发表评论

邮箱地址不会被公开。 必填项已用*标注