详细使用
依赖
<!-- Mybatis分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
application.yaml配置
pagehelper是顶层!
#可能需要这个
spring:
main:
allow-circular-references: true
#配置分页插件
#pagehelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
auto-runtime-dialect: false