Skip to content

Align DispatcherServlet defaults for Java and XML #25209

@sdeleuze

Description

@sdeleuze

In order to improve GraalVM compatibility (by requiring less reflection configuration) and for the sake of consistency, we should probably register these 4 missing beans in WebMvcConfigurationSupport:

  • org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
  • org.springframework.web.servlet.theme.FixedThemeResolver
  • org.springframework.web.servlet.support.SessionFlashMapManager
  • org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator

We should also make sure the same is done on XML side and should then make DispatcherServlet.properties parsing lazy as most use case will not use it.

Finally, we should check that no Spring Boot configuration update is needed.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions