Skip to content

Add possibility to set supportedMimeTypes in MappingJackson2MessageConverter [SPR-12724] #17321

@spring-projects-issues

Description

@spring-projects-issues

Tomasz Krym opened SPR-12724 and commented

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.


Affects: 4.1.4

Reference URL: http://wiki.fasterxml.com/JacksonOutsideofJSON

Referenced from: commits 1dc3932, 8159aa9, 8716129

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions