pom依赖
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.12</version>
</dependency>
application.properties配置
pagehelper.helper-dialect=mysql
pagehelper.params=count=countSql
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
本文介绍如何使用PageHelper分页插件进行Spring Boot项目的分页处理。通过在pom.xml中添加依赖并配置application.properties文件,可以轻松实现MySQL数据库查询的分页功能。
2191

被折叠的 条评论
为什么被折叠?



