当前位置: 首页 > 后端技术 > PHP

在ssm框架中使用pagehelper分页

时间:2023-03-29 14:42:55 PHP

在applicationContext.xml中引入com.github.pagehelperpagehelper5.1.2并添加到pom.xml属性中name="plugins">helperDialect=mysqloffsetAsPageNum=truerowBoundsWithCount=truepageSizeZero=truereasonable=trueservice的实现类中使用了PageHelper.startPage_service(页,大小);\续在roller中使用\pagecall\更多精彩文章,请关注王明昌博客