添加依赖
< 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