title: How to configure Jackson in spring boot application without overriding springs default setting in pure java
body: <p>In my spring boot application i am using Jackson to serialize objects by injecting the <code>ObjectMapper</code> where needed.
  I found this answer: <a href="https://stackoverflow.com/a/32842962/447426">https://stackoverflow.com/a/32842962/447426</a>
  But this one creates a new mapper - with jacksons default settings.</p>
  <p>On the other hand i found <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/howto-spring-mvc.html#howto-customize-the-jackson-objectmapper" rel="nofollow noreferrer">this</a> in official docu. I didn't really understand. There is no example code.</p>
  <p>So how to configure springs ObjectMapper on base of Spring's default object mapper?</p>
  <p>This configuration should be active on &quot;ObjectMapper&quot; whereever injected.</p>