工具类实现内存分页

import org.apache.commons.collections4.ListUtils;
ListUtils.partition(list, query.getPageSize()).get(query.getCurrentPage()-1)

注意:此方法做分页,是在内存中分页,数据量很大的情况下不可取。

posted on 2025-08-31 11:09  黑子菜园  阅读(6)  评论(0)    收藏  举报

导航