Springboot 使用PageHelper分页插件实现分页

一、pom文件中引入依赖

二、application.properties中配置以下内容

pagehelper.helper-dialect=mysql
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
pagehelper.params=count=countSql


三、使用

至此,分页完成。

参考:https://blog.csdn.net/qq_28988969/article/details/78082116

猜你喜欢

转载自www.cnblogs.com/memoa/p/10076388.html