Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghai committed Jul 23, 2018
2 parents b33a5ef + c1412f3 commit d708062
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Assert.assertEquals(com.github.seahuang.spring.data.mybatis.pagination.adapter.<

<br>
### Set up
- Add maven dependencies: PageHelper is not very stable. we only support 4.2.x
- Add maven dependencies: PageHelper is not very stable. for 4.2.x

```xml
<dependency>
Expand All @@ -87,6 +87,16 @@ Assert.assertEquals(com.github.seahuang.spring.data.mybatis.pagination.adapter.<
<version>1.0.0</version>
</dependency>
```
- For pagehelper 5.1.x

```xml
<dependency>
<groupId>com.github.sea-huang</groupId>
<artifactId>spring-data-mybatis-pagination</artifactId>
<version>2.0.0</version>
</dependency>
```

- For spring boot app, if mybatis-spring-boot-starter(min-version 1.2.1) is on classpath. PaginationPlugin is autoconfigured
- For other cases, PaginationObjectFactory/PaginationPlugin should be manually configured

Expand Down
13 changes: 12 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,25 @@ Assert.assertEquals(com.github.seahuang.spring.data.mybatis.pagination.adapter.<

<br>
### 设置
- 添加Maven依赖: PageHelper 不是很稳定. 只支持 4.2.x
- 添加Maven依赖: PageHelper 不是很稳定. 对于 4.2.x
```xml
<dependency>
<groupId>com.github.sea-huang</groupId>
<artifactId>spring-data-mybatis-pagination</artifactId>
<version>1.0.0</version>
</dependency>
```

- 对于 pagehelper 5.1.x

```xml
<dependency>
<groupId>com.github.sea-huang</groupId>
<artifactId>spring-data-mybatis-pagination</artifactId>
<version>2.0.0</version>
</dependency>
```

- 对 spring boot 应用, 如果 mybatis-spring-boot-starter(最小支持版本 1.2.1) 在类路径上. PaginationPlugin 会自动装配
- 对其他情况, PaginationObjectFactory/PaginationPlugin 需要手动配置
```
Expand Down

0 comments on commit d708062

Please sign in to comment.