List<AccessAreaVo> areaVo = vos.stream()
.skip(pageable.getPageSize() * (pageable.getPageNumber() - 1))
.limit(pageable.getPageSize()).collect(Collectors.toList());
List<AccessAreaVo> areaVo = vos.stream()
.skip(pageable.getPageSize() * (pageable.getPageNumber() - 1))
.limit(pageable.getPageSize()).collect(Collectors.toList());
本文标题:流实现分页
本文链接:https://www.haomeiwen.com/subject/ykotnctx.html
网友评论