jackson json unrecognized field not marked as ignorable

 

 public static final ObjectMapper mapper = new ObjectMapper();
    static {
        mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES,        false);
 }


mapper.readValue(node, className);
mapper.writeValueAsString(obj);

 

你可能感兴趣的:(Jackson)