阅读257 返回首页    go 阿里云 go 技术社区[云栖]


Mybatis 分页插件 PageHelper

Mybatis分页插件 - PageHelper 5.0.2 发布了。如果你也在用Mybatis,建议尝试该分页插件,这一定是最方便使用的分页插件。
该插件目前支持以下数据库的物理分页:

  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

使用 PageHelper 你只需要在 classpath 中包含 pagehelper-x.x.x.jar 和 jsqlparser-1.0.jar。

重要提示:jsqlparser 已升级到 1.0。

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

<dependency>
    <groupId>com.github.pagehelper</groupId>
    <artifactId>pagehelper</artifactId>
    <version>5.0.3</version>
</dependency>

5.0.3

  • 解决supportMethodsArguments参数不起作用的问题,由于之前默认为false,不起作用后效果为true,建议升级到最新版本。
  • 更新依赖版本,jsqlparser升级到1.0,去掉for update限制。

文章转载自 开源中国社区 [https://www.oschina.net]

最后更新:2017-06-29 16:01:47

  上一篇:go  看了这篇文章,再也不用担心邮件被误删除了
  下一篇:go  Linux 基金会透露未来 Linux 内核可能会引入形式验证