Mybatis_PageHelper: Mybatis分页插件

[](#mybatis-%E5%88%86%E9%A1%B5%E6%8F%92%E4%BB%B6---pagehelper)MyBatis 分页插件 - PageHelper

Build Status Maven central

English

如果你也在用 MyBatis,建议尝试该分页插件,这一定是最方便使用的分页插件。

分页插件支持任何复杂的单表、多表分页,部分特殊情况请看重要提示

想要使用分页插件?请看如何使用分页插件

[](#%E6%96%B0%E5%A2%9E-javadoc-%E6%96%87%E6%A1%A3)新增 JavaDoc 文档

文档地址:https://apidoc.gitee.com/free/Mybatis_PageHelper

Method API: https://apidoc.gitee.com/free/Mybatis_PageHelper/com/github/pagehelper/page/PageMethod.html

[](#%E6%96%B0%E4%B9%A6mybatis-%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E7%B2%BE%E9%80%9A)新书《MyBatis 从入门到精通》

MyBatis 从入门到精通

预售地址:京东当当亚马逊

CSDN博客:http://blog.csdn.net/isea533/article/details/73555400

GitHub项目:https://github.com/mybatis-book/book

[](#%E6%94%AF%E6%8C%81-mybatis-310)支持 MyBatis 3.1.0+

[](#%E7%89%A9%E7%90%86%E5%88%86%E9%A1%B5)物理分页

该插件目前支持以下数据库的物理分页:

  1. Oracle
  2. Mysql
  3. MariaDB
  4. SQLite
  5. Hsqldb
  6. PostgreSQL
  7. DB2
  8. SqlServer(2005,2008)
  9. Informix
  10. H2
  11. SqlServer2012
  12. Derby
  13. Phoenix

[](#%E4%BD%BF%E7%94%A8-queryinterceptor-%E8%A7%84%E8%8C%83)使用 QueryInterceptor 规范

Executor 拦截器高级教程 - QueryInterceptor 规范

[](#%E5%88%86%E9%A1%B5%E6%8F%92%E4%BB%B6-50)分页插件 5.0

由于分页插件 5.0 版本和 4.2.x 实现完全不同,所以 master 分支为 5.x 版本,4.2 作为一个分支存在,如果有针对 4.2 的 PR,请注意提交到分支版本。

[](#%E9%9B%86%E6%88%90)集成

使用 PageHelper 你只需要在 classpath 中包含 pagehelper-x.x.x.jarjsqlparser-0.9.5.jar

如果你使用 Maven,你只需要在 pom.xml 中添加下面的依赖:

<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>最新版本</version>
</dependency>

如果你使用 Spring Boot 可以参考: pagehelper-spring-boot-starter

继续查看配置和用法

[](#%E6%96%87%E6%A1%A3)文档:

[](#spring-%E9%9B%86%E6%88%90%E7%A4%BA%E4%BE%8B)Spring 集成示例

[](#%E6%8F%90%E4%BA%A4-bug)提交 BUG

[](#%E4%BD%9C%E8%80%85%E4%BF%A1%E6%81%AF)作者信息

网站:http://www.mybatis.tk

作者博客:http://blog.csdn.net/isea533

作者邮箱: abel533@gmail.com

如需加群,请通过 http://mybatis.tk 首页按钮加群。

本项目在 github 的项目地址:https://github.com/pagehelper/Mybatis-PageHelper

本项目在 gitosc 的项目地址:http://git.oschina.net/free/Mybatis_PageHelper

[](#mybatis-3)MyBatis-3

MyBatis 专栏:


Original url: Access
Created at: 2019-08-13 19:02:39
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论