spring boot 整合pagehelper 坑一


坑一、

pagehelper.dialect

如果不加这一行也能出来分页效果,但是统计重来的total是本页总数。不是查询总记录数

 

 

pagehelper相关的配置如下:


############################## PageHelper配置 ######################################
pagehelper.dialect=com.github.pagehelper.dialect.helper.MySqlDialect
pagehelper.row-bounds-with-count=true
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
pagehelper.params=count=countSql



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM