ObjectMapper忽略多余字段

ObjectMapper  objectMapper= new ObjectMapper();
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

你可能感兴趣的:(json)