Skip to content

Commit 5e4c21e

Browse files
committed
EADME增加jackson兼容性解决方法
1 parent 5f3a97e commit 5e4c21e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,29 @@ dependencies {
359359
}
360360
```
361361

362+
### 如何解决jackson兼容性问题
363+
项目使用的jackson版本为`2.12.5`,同时引入该项目和版本低于`2.5.x`的SpringBoot会有jackson兼容性问题。推荐升级SpringBoot到版本`2.5.x`及以上。如无法升级,可按照下述方式指定jackson版本。
364+
#### gradle
365+
```groovy
366+
implementation('com.fasterxml.jackson.core:jackson-databind') {
367+
version {
368+
strictly '2.12.5'
369+
}
370+
}
371+
```
372+
#### maven
373+
```groovy
374+
<dependencyManagement>
375+
<dependencies>
376+
<dependency>
377+
<groupId>com.fasterxml.jackson.core</groupId>
378+
<artifactId>jackson-databind</artifactId>
379+
<version>2.12.5</version>
380+
</dependency>
381+
</dependencies>
382+
</dependencyManagement>
383+
```
384+
362385
### 更多常见问题
363386

364387
请看商户平台的[常见问题](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/wechatpay/wechatpay7_0.shtml),或者[这里](https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti)

0 commit comments

Comments
 (0)