|
@@ -139,7 +139,7 @@ public class RedisUtil {
|
|
|
object instanceof Double || object instanceof Boolean || object instanceof String) {
|
|
|
return String.valueOf(object);
|
|
|
}
|
|
|
- return GSON.toJson(object);
|
|
|
+ return JSONUtil.toJsonStr(object);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -153,6 +153,6 @@ public class RedisUtil {
|
|
|
* JSON数据,转成Object
|
|
|
*/
|
|
|
private <T> T fromJson(String json, TypeReference<T> typeReference) {
|
|
|
- return JSONUtil.toBean(json, typeReference, true);
|
|
|
+ return JSONUtil.toBean(json, typeReference, false);
|
|
|
}
|
|
|
}
|