maven:pagehelper的使用小结

依赖pagehelper

可以搭配前端的一些分页小插件传来的当前页和页大小来使用

pageHelper.startPage(“当前页”,“页大小”) 下面第一条查询语句分页

long total= new pageInfo(查询结果集合).getTotal 数据库总条数

猜你喜欢

转载自blog.csdn.net/phcla/article/details/115448206