Skip to content

Commit

Permalink
add docs for spring support.
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorZeng committed May 22, 2022
1 parent d4704db commit b4f7a49
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,28 @@ dependencies {
}
```

### `Fastjson Extension`扩展模块

如果项目使用`SpringFramework`等框架,可以使用`fastjson-extension`模块,使用方式参考 [SpringFramework Support](docs/spring_support_cn.md)

`Maven`:

```xml
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension</artifactId>
<version>2.0.4</version>
</dependency>
```

`Gradle`:

```kotlin
dependencies {
implementation("com.alibaba.fastjson2:fastjson2-extension:2.0.4")
}
```

# 2. 简单使用

`fastjson v2`中,`package``1.x`不一样,是`com.alibaba.fastjson2`。如果你之前用的是`fastjson1`,大多数情况直接更包名就即可。
Expand Down
25 changes: 24 additions & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dependencies {

### `Kotlin` integration module `fastjson-kotlin`

If your project uses `kotlin`, you can use the` Fastjson-Kotlin` module, and use the characteristics of `kotlin`.
If your project uses `kotlin`, you can use the `Fastjson-Kotlin` module, and use the characteristics of `kotlin`.

`Maven`:

Expand All @@ -106,6 +106,29 @@ dependencies {
}
```

### `Extension` integration module `fastjson-extension`

If your project uses a framework such as `SpringFramework`, you can use the `fastjson-extension` module, please refer to the usage [SpringFramework Support](docs/spring_support_en.md).

`Maven`:

```xml
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension</artifactId>
<version>2.0.4</version>
</dependency>
```

`Gradle`:

```kotlin
dependencies {
implementation("com.alibaba.fastjson2:fastjson2-extension:2.0.4")
}
```


# 2. Usage

The package name of `fastjson v2` is different from `fastjson v1`. It is `com.alibaba.fastjson2`. If you used `fastjson v1` before, simply change the package name.
Expand Down
22 changes: 22 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,28 @@ dependencies {
}
```

### `Fastjson Extension`扩展模块

如果项目使用`SpringFramework`等框架,可以使用`fastjson-extension`模块,使用方式参考 [SpringFramework Support](docs/spring_support_cn.md)

`Maven`:

```xml
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension</artifactId>
<version>2.0.4</version>
</dependency>
```

`Gradle`:

```kotlin
dependencies {
implementation("com.alibaba.fastjson2:fastjson2-extension:2.0.4")
}
```

# 2 简单使用

`fastjson v2`中,`package``1.x`不一样,是`com.alibaba.fastjson2`。如果你之前用的是`fastjson1`,大多数情况直接更包名就即可。
Expand Down

0 comments on commit b4f7a49

Please sign in to comment.