Commit 26732556 by naan1993

完善fastjson配置

parent 8b25a514
...@@ -22,7 +22,8 @@ public class FastjsonConfig { ...@@ -22,7 +22,8 @@ public class FastjsonConfig {
FastJsonConfig fastJsonConfig = new FastJsonConfig(); FastJsonConfig fastJsonConfig = new FastJsonConfig();
fastJsonConfig.setSerializerFeatures( fastJsonConfig.setSerializerFeatures(
SerializerFeature.PrettyFormat, SerializerFeature.PrettyFormat,
SerializerFeature.WriteMapNullValue SerializerFeature.WriteMapNullValue,
SerializerFeature.BrowserCompatible
); );
fastJsonConfig.setDateFormat("yyyy-MM-dd HH:mm:ss"); fastJsonConfig.setDateFormat("yyyy-MM-dd HH:mm:ss");
ValueFilter valueFilter = new ValueFilter() { ValueFilter valueFilter = new ValueFilter() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment