We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbaa49f commit a97fb6bCopy full SHA for a97fb6b
eladmin-system/src/main/java/me/zhengjie/config/ConfigurerAdapter.java
@@ -78,10 +78,7 @@ public void configureMessageConverters(List<HttpMessageConverter<?>> converters)
78
supportMediaTypeList.add(MediaType.APPLICATION_JSON_UTF8);
79
FastJsonConfig config = new FastJsonConfig();
80
config.setDateFormat("yyyy-MM-dd HH:mm:ss");
81
- config.setSerializerFeatures(
82
- SerializerFeature.DisableCircularReferenceDetect,
83
- //保留空的字段
84
- SerializerFeature.WriteMapNullValue);
+ config.setSerializerFeatures(SerializerFeature.DisableCircularReferenceDetect);
85
converter.setFastJsonConfig(config);
86
converter.setSupportedMediaTypes(supportMediaTypeList);
87
converter.setDefaultCharset(StandardCharsets.UTF_8);
0 commit comments