|
@@ -2,6 +2,7 @@ package org.bfkj.utils;
|
|
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
+import com.fasterxml.jackson.databind.SerializationFeature;
|
|
|
import com.fasterxml.jackson.databind.util.JSONPObject;
|
|
|
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
|
|
import org.dom4j.DocumentException;
|
|
@@ -365,6 +366,7 @@ public class MapTools implements Serializable {
|
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
|
try {
|
|
|
mapper.registerModule(new JavaTimeModule());
|
|
|
+ mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS,false); //关闭
|
|
|
return mapper.writeValueAsString(mapStr);
|
|
|
} catch (JsonProcessingException e) {
|
|
|
return null;
|