1 Star 0 Fork 834

phil / Mybatis_PageHelper

forked from abel533 / Mybatis_PageHelper 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_zh.md 4.74 KB
一键复制 编辑 原始数据 按行查看 历史
abel533 提交于 2017-07-31 20:38 . 增加 Phoenix 数据库的简单配置

MyBatis 分页插件 - PageHelper

Build Status Maven central Dependency Status

English

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

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

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

新书《MyBatis 从入门到精通》

MyBatis 从入门到精通

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

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

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

支持 MyBatis 3.1.0+

物理分页

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

  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

使用 QueryInterceptor 规范

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

分页插件 5.0

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

集成

使用 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

继续查看配置和用法

文档:

Spring 集成示例

提交 BUG

作者信息

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

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

作者邮箱: abel533@gmail.com

Mybatis工具群: Mybatis工具群

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

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

MyBatis-3

MyBatis 专栏:

Java
1
https://gitee.com/phil_fot/Mybatis_PageHelper.git
git@gitee.com:phil_fot/Mybatis_PageHelper.git
phil_fot
Mybatis_PageHelper
Mybatis_PageHelper
master

搜索帮助