How do I obtain the Jackson ObjectMapper in use by Spring 4.1?

If you’re using Spring Boot with Jackson on your classpath and default implementation for JSON parsing in your REST controller, then this should work:

@Autowired
private ObjectMapper jacksonObjectMapper;

Leave a Comment