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