springboot pagehelper使用

添加依赖
< dependency>
< groupId>com.github.pagehelper</ groupId>
< artifactId>pagehelper</ artifactId>
< version>1.1.2</ version>
</ dependency>

spring yml配置
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql

猜你喜欢

转载自blog.csdn.net/chaogaoxiaojifantong/article/details/89055320