Mybatis通用分页插件
如果你也在用 MyBatis,建议尝试该分页插件,这一定是最方便使用的分页插件。
分页插件支持任何复杂的单表、多表分页,部分特殊情况请看重要提示。
想要使用分页插件?请看如何使用分页插件。
CSDN博客:http://blog.csdn.net/isea533/article/details/73555400
GitHub项目:https://github.com/mybatis-book/book
该插件目前支持以下数据库的物理分页 PageAutoDialect:
…如果你使用的数据库不在这个列表时,你可以配置
dialectAlias参数。这个参数允许配置自定义实现的别名,可以用于根据 JDBCURL 自动获取对应实现,允许通过此种方式覆盖已有的实现,配置示例如(多个配置时使用分号隔开):
<property name="dialectAlias" value="oracle=com.github.pagehelper.dialect.helper.OracleDialect"/> <property name="dialectAlias" value="oracle=oracle9i"/> <property name="dialectAlias" value="dm=oracle"/>
Executor 拦截器高级教程 - QueryInterceptor 规范
使用 PageHelper 你只需要在 classpath 中包含 pagehelper-x.y.z.jar 和 jsqlparser-x.y.z.jar。
pagehelper 和 jsqlparser 对应关系参考 pom.xml 中的依赖版本。
如果你使用 Maven,你只需要在 pom.xml 中添加下面的依赖:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>最新版本</version>
</dependency>如果你使用 Spring Boot 可以参考: pagehelper-spring-boot-starter
https://github.com/pagehelper/Mybatis-PageHelper/issues/new
作者博客:http://blog.csdn.net/isea533
作者邮箱: [email protected]
如需加群,请通过 http://mybatis.io 首页按钮加群。
本项目在 github 的项目地址:https://github.com/pagehelper/Mybatis-PageHelper
本项目在 gitosc 的项目地址:http://git.oschina.net/free/Mybatis_PageHelper
MyBatis 专栏:
由于Sql语法检查不严格导致的SQL注入
jsqlparser 5.4 不兼容
springboot4 支持
希望有一个对密集恐惧症更友好的标志
异步计数模式(asyncCount=true),当 pageSize=0 时,未触发同步计数的空结果会提前返回,会执行不分页的全量数据查询。
在达梦数据库中分页查询性能非常差
参数污染问题,性能问题,SQL意外重写问题
在线环境升级到 6.1.0,服务器 CPU 直接达到 99% 以上,无法下载,所有接口均无响应
pagehelper-spring-boot-starter 1.4.3 分页失败导致全量查询
手动指定方言类型