实体类
public class User {
private int id;//编号
private String name;//姓名
private String age;//年龄
private String sex;//性别
private String height;//身高
private String weight;//体重
private String address;//家庭住址
}
.....
mapper
public List<User> queryAll(@Param(value = "start") int start, @Param(value = "size") int size);
xml
<select id="queryAll" resultMap="userResultMap">
select * from user limit ${start},${size}
</select>