Skip to content

Improve HttpMessageConverters javadoc #15027

@liudaomanbu

Description

@liudaomanbu

I use the spring-boot-starter-parent 1.5.17.RELEASE.

I create my config extends WebMvcConfigurerAdapter,and overwrite the extendMessageConverters method.

I see the List<HttpMessageConverter<?>> has two MappingJackson2HttpMessageConverters and two StringHttpMessageConverters.

@Configuration
public class TestConfig extends WebMvcConfigurerAdapter {

  @Override
  public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
    System.out.println(converters);
  }
}

image

I try to register my TestDeserializer to jackson.
But this is only the first one to take effect.

This is the first one.
image
This is the second one.
image

I think is maybe a bug?
If it is not a bug,someone can explain?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions