发布于 2017-02-05 06:31:22 | 120 次阅读 | 评论: 0 | 来源: 网友投递
MyBatis 基于Java的持久层框架
MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation 迁移到了google code,并且改名为MyBatis 。
解决可能会注册两次分页插件的问题(由于属性注解导致的两次加载)。
增加 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>