1、依赖引入
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.3</version> <exclusions> <exclusion> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> </exclusion> <exclusion> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> </exclusion> </exclusions> </dependency>
2、配置
pagehelper: helper-dialect: mysql pageSizeZero: true params: count=countSql reasonable: true support-methods-arguments: true
Mybatis Plus整合PageHelper分页的实现示例
原文:https://www.cnblogs.com/wujf/p/14814514.html