Mybatis 分页插件 PageHelper Starter v1.1.0 更新内容:
解决可能会注册两次分页插件的问题(由于属性注解导致的两次加载)。
增加 PageHelperProperties 注入,常用属性可以通过 IDE 自动提示。
有关 pagehelper-spring-boot-starter 的用法可以参考集成示例 MyBatis-Spring-Boot。
如果你使用最好用的分页插件 PageHelper 5.x 版本,在 Spring Boot 中使用时,可以使用 pagehelper-spring-boot-starter。添加依赖即可使用。
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.1.0</version> </dependency>