diff --git a/README.md b/README.md
index fb131ba..d49b00a 100644
--- a/README.md
+++ b/README.md
@@ -14,13 +14,13 @@
## 1. 集成
引入sdk包
```xml
-
+
io.github.jpush
jiguang-sdk
- 5.0.0
+ 5.0.1
```
diff --git a/example-for-spring/pom.xml b/example-for-spring/pom.xml
index e6806f2..3b6cc46 100644
--- a/example-for-spring/pom.xml
+++ b/example-for-spring/pom.xml
@@ -13,7 +13,7 @@
io.github.jpush
example-for-spring
- 5.0.0
+ 5.0.1
8
@@ -26,7 +26,7 @@
io.github.jpush
jiguang-sdk
- 5.0.0
+ 5.0.1
diff --git a/jiguang-sdk/pom.xml b/jiguang-sdk/pom.xml
index db6417e..79d4364 100644
--- a/jiguang-sdk/pom.xml
+++ b/jiguang-sdk/pom.xml
@@ -7,13 +7,13 @@
io.github.jpush
jiguang-sdk-java
- 5.0.0
+ 5.0.1
../pom.xml
io.github.jpush
jiguang-sdk
- 5.0.0
+ 5.0.1
jar
diff --git a/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiDecoder.java b/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiDecoder.java
index 32363fc..59d9546 100644
--- a/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiDecoder.java
+++ b/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiDecoder.java
@@ -1,5 +1,7 @@
package cn.jiguang.sdk.codec;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import feign.FeignException;
import feign.Response;
import feign.codec.DecodeException;
@@ -14,7 +16,9 @@ public class ApiDecoder implements Decoder {
private final JacksonDecoder jacksonDecoder;
public ApiDecoder() {
- jacksonDecoder = new JacksonDecoder();
+ ObjectMapper objectMapper = new ObjectMapper();
+ objectMapper.registerModule(new JavaTimeModule());
+ jacksonDecoder = new JacksonDecoder(objectMapper);
}
@Override
diff --git a/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiEncoder.java b/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiEncoder.java
index ec4e69c..57c8c9c 100644
--- a/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiEncoder.java
+++ b/jiguang-sdk/src/main/java/cn/jiguang/sdk/codec/ApiEncoder.java
@@ -1,5 +1,7 @@
package cn.jiguang.sdk.codec;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import feign.RequestTemplate;
import feign.codec.EncodeException;
import feign.codec.Encoder;
@@ -15,7 +17,9 @@ public class ApiEncoder implements Encoder {
public ApiEncoder() {
formEncoder = new FormEncoder();
- jacksonEncoder = new JacksonEncoder();
+ ObjectMapper objectMapper = new ObjectMapper();
+ objectMapper.registerModule(new JavaTimeModule());
+ jacksonEncoder = new JacksonEncoder(objectMapper);
}
@Override
diff --git a/pom.xml b/pom.xml
index d770183..8257559 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.jpush
jiguang-sdk-java
- 5.0.0
+ 5.0.1
pom
Jiguang SDK For Rest Api