使用PageHelper进行分页查询

    科技2022-09-06  134

    1.导坐标

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

    Processed: 0.008, SQL: 9