fix:修改JSON工具 格式化时间 回退
parent
d17ecfa13b
commit
23d3210f84
|
|
@ -1,7 +1,6 @@
|
||||||
package com.czcb.scfs.api.core.util;
|
package com.czcb.scfs.api.core.util;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
|
||||||
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
|
|
@ -13,7 +12,7 @@ public class Json {
|
||||||
private Json() {
|
private Json() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();
|
private static final Gson gson = new Gson();
|
||||||
|
|
||||||
public static String toJson(Object data) {
|
public static String toJson(Object data) {
|
||||||
return gson.toJson(data);
|
return gson.toJson(data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue