---
title: "jackson json unrecognized field not marked as ignorable "
author: "linshow26"
date: "2014-06-11T11:55:36Z"
tags: []
categories: ["编程语言"]
slug: "jackson-json-unrecognized-field-not-marked-as-ignorable"
draft: false
lastmod: "2014-06-11T11:55:36Z"
id: 2078280
url: "https://linshow26.iteye.com/blog/2078280"
---

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


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