📌  相关文章
📜  testException = com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:无法识别的字段 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:17.443000             🧑  作者: Mango

代码示例1
ObjectMapper mapper = new ObjectMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
mapper.setVisibility(VisibilityChecker.Std.defaultInstance().withFieldVisibility(JsonAutoDetect.Visibility.ANY));