更新时间:2022-02-03 18:42:57
Mybatis分页插件 - PageHelper PageHelper 5.0.2 发布了。如果你也在用Mybatis,建议尝试该分页插件,这一定是最方便使用的分页插件。分页插件支持任何复杂的单表、多表分页,部分特殊情况请看重要提示。想要使用分页插件?请看如何使用分页插件。
该插件目前支持以下数据库的物理分页:
使用 PageHelper 你只需要在 classpath 中包含 pagehelper-x.x.x.jar 和 jsqlparser-0.9.5.jar。
如果你使用 Maven,你只需要在 pom.xml 中添加下面的依赖:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.0.2</version>
</dependency>
5.0.2
下个版本5.1.0会以增加排序功能为主。
文章转载自 开源中国社区 [http://www.oschina.net]