分页查询
使用 RowBounds 对结果集进行分页
- <select id="findAllStudents" resultMap="StudentResult">
- select * from Students
- </select>
- int offset =0 , limit =25;
- RowBounds rowBounds = new RowBounds(offset, limit);
- List<Student> = studentMapper.getStudents(rowBounds);