Skip to content

flashMapManager and themeResolver beans can no longer be configured without enabling bean overriding #24207

@ebussieres

Description

@ebussieres

I have an application where I have my own flashMapManager implementation. In version 2.3.6, eveything works fine. I have a bean named "flashMapManager" and DispatcherServlet uses my implementation.

I tried to upgrade to version 2.4.0 and I got an error telling me that the bean in WebMvcAutoConfiguration$EnableWebMvcConfiguration cannot be registered because a bean has already been defined with that name.

I tried to enable bean overriding but the flashMapManager that is used is the SessionFlashMapManager.

How can i provide my own flashMap implementation in spring boot 2.4.x ?

I provided a simple test case here to demonstrate it
https://github.com/ebussieres/spring-boot-flashmap-bug

Metadata

Metadata

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions