Mybatis分页插件 - PageHelper 5.0.2 发布了。如果你也在用Mybatis,建议尝试该分页插件,这一定是最方便使用的分页插件。
该插件目前支持以下数据库的物理分页:
- Oracle
- Mysql
- MariaDB
- SQLite
- Hsqldb
- PostgreSQL
- DB2
- SqlServer(2005,2008)
- Informix
- H2
- SqlServer2012
- 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限制。
文章转载自 开源中国社区 [http://www.oschina.net]