title: How do you globally set Jackson to ignore unknown properties within Spring?
body: <p>Jackson has annotations for ignoring unknown properties within a class using:</p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true) 
  </code></pre>
  
  <p>It allows you to ignore a specific property using this annotation:</p>
  
  <pre><code>@JsonIgnore
  </code></pre>
  
  <p>If you'd like to globally set it you can modify the object mapper:</p>
  
  <pre><code>// jackson 1.9 and before
  objectMapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
  // or jackson 2.0
  objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
  </code></pre>
  
  <p>How do you set this globally using spring so it can be <code>@Autowired</code> at server start up without writing additional classes?</p>