浏览代码

忽略未知字段转换

xiatian 18 小时之前
父节点
当前提交
68c184c0e8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      stmms-web/src/main/java/cn/com/qmth/stmms/common/support/MyObjectMapper.java

+ 1 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/common/support/MyObjectMapper.java

@@ -19,6 +19,7 @@ public class MyObjectMapper extends ObjectMapper {
         super();
         super();
         setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
         setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
         configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true);
         configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true);
+        configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
     }
     }
 
 
 }
 }