该怎么写分页啊?新手,刚会ssm中的基本操作。现在在做分页,不会啊
分页条件
public class Pager<T> implements Serializable {
/**
* 默认每页显示数
*/
public static final int PAGE_SIZE = 10;
/**
* 默认页数
*/
public static final int PAGE_NUM = 1;
/**
* 页数
*/
private int page;
/**
* 每页显示数
*/
private int limit = PAGE_SIZE;
/**
* 总页数
*/
private int totalPageNum;
/**
* 记录总数
*/
private int totalCount;
/**
* 分页信息
*/
private List<T> rows = new ArrayList<T>();
/**
* 分页计算起始值
*/
private int start;