分页查询

 

使用 RowBounds 对结果集进行分页 

  1. <select id="findAllStudents" resultMap="StudentResult">
  2.     select * from Students
  3. </select>
  4. int offset =0 , limit =25;
  5. RowBounds rowBounds = new RowBounds(offset, limit);
  6. List<Student> = studentMapper.getStudents(rowBounds);
posted @ 2016-12-27 08:33  csnmd  阅读(136)  评论(0编辑  收藏  举报