1.导坐标
2.在applicationContext.xml中添加配置
3.测试
在查询所有之前添加执行语句:
PageHelper.offsetPage(page.getStart(),page.getCount());
(自定义Page类)
获取list总数:PageInfo total = new PageInfo<>(集合名);
1.导坐标
2.在applicationContext.xml中添加配置
3.测试
在查询所有之前添加执行语句:
PageHelper.offsetPage(page.getStart(),page.getCount());
(自定义Page类)
获取list总数:PageInfo total = new PageInfo<>(集合名);