Class MappingJackson2MessageConverter

All Implemented Interfaces:
Aware, BeanClassLoaderAware, MessageConverter, SmartMessageConverter

public class MappingJackson2MessageConverter extends Object implements SmartMessageConverter, BeanClassLoaderAware
Message converter that uses Jackson 2.x to convert messages to and from JSON. Maps an object to a BytesMessage, or to a TextMessage if the targetType is set to MessageType.TEXT. Converts from a TextMessage or BytesMessage to an object.

It customizes Jackson's default properties with the following ones:

Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.

Mark Pollack, Dave Syer, Juergen Hoeller, Stephane Nicoll