这里有新鲜出炉的精品教程,程序狗速度看过来!
Mybatis分页插件 - PageHelper 5.1.0 发布了。 如果你也在用Mybatis,建议尝试该分页插件,这一定是最方便使用的分页插件。
该插件目前支持以下数据库的物理分页
如果你使用 Maven 可以在pom.xml 中添加下面的依赖:
- <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.0</version> </dependency>
如果使用Spring Boot,可以直接添加下面的依赖:
- <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.0</version> </dependency>
来源: http://www.phperz.com/article/17/0829/344939.html