Prior to this commit some of the default strategies defined for the DispatcherServlet weren't included in the default configuration for both Java and XML configuration.
The following default beans have been added to the configuration with the name as expected by the DispatcherServlet:
- org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
- org.springframework.web.servlet.theme.FixedThemeResolver
- org.springframework.web.servlet.support.SessionFlashMapManager
- org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator
Fixes: gh-25209
Comment From: sdeleuze
Merged via bad81cef8a3a64bfc39ec23f336fa7fb9ebc814d, thanks for your contribution, much appreciated.
Comment From: rstoyanchev
This can impact existing applications, on the Java config side in particular, that already define those beans in order to customize them or to choose the implementation.
One of them at least is defined in Spring Boot. As far as I can see this will suppress use of the spring.mvc.locale property.
Comment From: sdeleuze
Indeed this is tracked by #25290, I am working on a fix.
Comment From: rstoyanchev
Okay, I missed that. I guess I'll close this one then.