title: Configure Jackson ObjectMapper in Spring Boot with JsonFactory.Feature settings
body: <p>I know how to configure the Jackson <code>ObjectMapper</code> in Spring Boot through application properties as per <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/howto-spring-mvc.html#howto-customize-the-jackson-objectmapper" rel="nofollow noreferrer">https://docs.spring.io/spring-boot/docs/current/reference/html/howto-spring-mvc.html#howto-customize-the-jackson-objectmapper</a>.</p>
  
  <p>How do I control the Jackson <code>JsonFactory.Feature</code>s that way?</p>
  
  <p>In Spring 4.3.14 <code>Jackson2ObjectMapperBuilder</code> instantiates <code>ObjectMapper</code> through its default constructor i.e. without passing a <code>JsonFactory</code>. This behavior was obviously changed/fixed later: <a href="https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java#L621" rel="nofollow noreferrer">https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java#L621</a></p>