Add possibility to set supportedMimeTypes in MappingJackson2MessageConverter [SPR-12724] #17321
It is possible to use Jackson API (annotations, ObjectMapper, etc.) with other formats than JSON (see reference URL), i.e. BSON, XML, Smile JSON. It is possible to configure MappingJackson2MessageConverter to use those JsonFactories, but it is not possible to configure supportedMediaTypes.
The possibility of setting supportedMediaTypes is explicitely blocked by declaring non parametrized constructor in MappingJackson2MessageConverter.
Adding a parametrized constructor would solve this issue.
Reference URL: http://wiki.fasterxml.com/JacksonOutsideofJSON
Juergen Hoeller commented
A minor note: For concrete converter implementations such as
The situation with
I'm applying this to master and to the backport, if that's alright with you, Sébastien...