Skip to content

Update Javadoc and reference doc for WebMvcConfigurer to mention Boot's HttpMessageConverters #30538

@joca-bt

Description

@joca-bt

The documentation for configureMessageConverters states:

Note use of this method turns off default converter registration. Alternatively, use extendMessageConverters(java.util.List) to modify that default list of converters.

This does not seem to be the case. My expectation from the documentation is that if I defined this override, my application will just use the converters I register manually there. However, if I inspect the list it contains the default converters. I can clear the list but the behaviour doesn't seem to match the documentation.

I have attached a simple application that shows the issue (test.zip).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions