详细使用
依赖
<!-- 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: mysqlreasonable: truesupportMethodsArguments: trueparams: count=countSqlauto-runtime-dialect: false
