1.引入依赖
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.3.0</version>
</dependency>
2.application.yml 集成
pagehelper:
row-bounds-with-count: true
offset-as-page-num: true
page-size-zero: true
reasonable: false
support-methods-arguments: false
params: count=countSql
helper-dialect: mysql