閱讀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 內核可能會引入形式驗證