首页 > 其他分享 >分页查询

分页查询

时间:2023-02-02 22:37:07浏览次数:36  
标签:github 分页 pagehelper jsqlparser 查询 com

先添加maven依赖

<dependency>
    <groupId>com.github.pagehelper</groupId>
    <artifactId>pagehelper</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
	<groupId>com.github.jsqlparser</groupId>
	<artifactId>jsqlparser</artifactId>
	<version>3.1</version>
</dependency>

配置核心文件

<!--集成分页助手插件-->
<plugins>
    <plugin interceptor="com.github.pagehelper.PaginationInterceptor"></plugin>
</plugins>

使用:

PageHelper.startPage(1,3)

表示一页三个数据

 

标签:github,分页,pagehelper,jsqlparser,查询,com
From: https://www.cnblogs.com/lin513/p/17087601.html

相关文章