Skip to content

Commit

Permalink
[Fix] Optimize mypages-spring-boot-starter
Browse files Browse the repository at this point in the history
  • Loading branch information
yihleego committed Aug 11, 2020
1 parent c09e875 commit 8be70df
Show file tree
Hide file tree
Showing 12 changed files with 318 additions and 207 deletions.
4 changes: 2 additions & 2 deletions README.ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ mvn clean install

```xml
<properties>
<mypages.version>0.6.0</mypages.version>
<mypages.version>1.0.0</mypages.version>
</properties>

<dependency>
Expand All @@ -31,7 +31,7 @@ $ mvn clean install
### Gradle

```xml
implementation 'io.leego:mypages:0.6.0'
implementation 'io.leego:mypages:1.0.0'
```

## 数据库
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ mvn clean install

```xml
<properties>
<mypages.version>0.6.0</mypages.version>
<mypages.version>1.0.0</mypages.version>
</properties>

<dependency>
Expand All @@ -32,7 +32,7 @@ $ mvn clean install
### Gradle

```xml
implementation 'io.leego:mypages:0.6.0'
implementation 'io.leego:mypages:1.0.0'
```

## Supported
Expand Down
16 changes: 8 additions & 8 deletions docs/STARTER_USERGUIDE.ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ MyPages是Java实现基于[MyBatis](https://github.com/mybatis/mybatis-3)的开

# 3. 依赖

## Maven
## 3.1 Maven

```xml
<properties>
<mypages-spring-boot-starter.version>0.6.0</mypages-spring-boot-starter.version>
<mypages-spring-boot-starter.version>1.0.0</mypages-spring-boot-starter.version>
</properties>

<dependency>
Expand All @@ -22,10 +22,10 @@ MyPages是Java实现基于[MyBatis](https://github.com/mybatis/mybatis-3)的开
</dependency>
```

## Gradle
## 3.2 Gradle

```xml
implementation 'io.leego:mypages-spring-boot-starter:0.6.0'
implementation 'io.leego:mypages-spring-boot-starter:1.0.0'
```

# 4. 配置
Expand All @@ -40,14 +40,14 @@ public class Pageable {
private Integer rows;
private String countExpr;
private String countMethodName;
private boolean enableCount;
private Boolean enableCount;
/* getter setter */
}
```

请注意sql-dialect,它可以是任何SqlDialect且必须被配置
请注意sql-dialect必须被配置

## Properties
## 4.1 Properties

```properties
spring.mypages.enabled=true
Expand All @@ -68,7 +68,7 @@ spring.mypages.max-page=10000
spring.mypages.max-size=10000
```

## Yaml
## 4.2 Yaml

```yaml
spring:
Expand Down
18 changes: 9 additions & 9 deletions docs/STARTER_USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Please make sure the Java version is 1.8 and above.

# 3. Dependency

## Maven
## 3.1 Maven

```xml
<properties>
<mypages-spring-boot-starter.version>0.6.0</mypages-spring-boot-starter.version>
<mypages-spring-boot-starter.version>1.0.0</mypages-spring-boot-starter.version>
</properties>

<dependency>
Expand All @@ -22,15 +22,15 @@ Please make sure the Java version is 1.8 and above.
</dependency>
```

## Gradle
## 3.2 Gradle

```xml
implementation 'io.leego:mypages-spring-boot-starter:0.6.0'
implementation 'io.leego:mypages-spring-boot-starter:1.0.0'
```

# 4. Configuration

Define a class with paging parameters, and configure parameters field names.
Define a class with paging parameters.

```java
public class Pageable {
Expand All @@ -40,14 +40,14 @@ public class Pageable {
private Integer rows;
private String countExpr;
private String countMethodName;
private boolean enableCount;
private Boolean enableCount;
/* getter setter */
}
```

Notice that the sql-dialect is required. It can be any SqlDialect and should be configured.
Please notice that the sql-dialect is required.

## Properties
## 4.1 Properties

```properties
spring.mypages.enabled=true
Expand All @@ -68,7 +68,7 @@ spring.mypages.max-page=10000
spring.mypages.max-size=10000
```

## Yaml
## 4.2 Yaml

```yaml
spring:
Expand Down
Loading

0 comments on commit 8be70df

Please sign in to comment.