Skip to content

Update the MVC Java config and the MVC namespace to support content negotiation options [SPR-8420] #13068

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-8420 and commented

This involves configuring a list of ordered RequestedMediaTypesResolver types and then using it to configure:

  • RequestMappingHandlerMapping (for "produces")
  • RequestMappingHandlerAdapter (for @ResponseBody)
  • ContentNegotiatingViewResolver for view resolution

Currently we don't configure a ContentNegotiatingViewResolver through @EnableWebMvc. However, once content negotiation options have been provided it would be quite easy to do so. Such a resolver is always ordered at 0.


Affects: 3.1 M1

This issue is a sub-task of #13057

Issue Links:

Referenced from: commits 64d939b, 028e15f

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions