|
@@ -73,7 +73,7 @@ public class WebMvcConfigurer extends WebMvcConfigurationSupport {
|
|
|
fastConverter.setSupportedMediaTypes(supportedMediaTypes);
|
|
|
// 添加fastjson的配置信息 比如 :是否要格式化返回的json数据
|
|
|
FastJsonConfig fastJsonConfig = new FastJsonConfig();
|
|
|
- fastJsonConfig.setSerializerFeatures(SerializerFeature.PrettyFormat/*,SerializerFeature.WriteMapNullValue*/);
|
|
|
+ fastJsonConfig.setSerializerFeatures(SerializerFeature.PrettyFormat,SerializerFeature.WriteMapNullValue);
|
|
|
fastJsonConfig.setDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
SerializeConfig serializeConfig = SerializeConfig.globalInstance;
|
|
|
serializeConfig.put(BigInteger.class, ToStringSerializer.instance);
|