mybatis学习10:RowBounds分页
-
RowBounds分页:不再使用SQL分页
-
RowBounds是一个类;
-
不建议在开发中使用;
-
分页所有的底层都是Limit;
-
-
开发步骤:
-
接口
//分页2
List<User> getUserByRowBounds(); -
Mapper.xml
<!--分页2-->
<select id="getUserByRowBounds" resultMap="getUserByLimitMap">
select * from mybatis.user
</select> -
测试
-
-
分页插件:
-
MyBatis 分页插件 PageHelper
-
官网地址:https://pagehelper.github.io/
-

浙公网安备 33010602011771号