Skip to content

HandlerMappingIntrospectorRequestTransformer is registered twice in AOT #14362

Closed
@marcusdacoregio

Description

@marcusdacoregio

The new changes added via #14128 introduced a BeanDefinitionRegistryPostProcessor that, among other things, register a HandlerMappingIntrospectorRequestTransformer bean.

The problem arises from the fact that the BeanFactoryPostProcessors are invoked during AOT processing and once more at runtime, leading to a duplicate bean exception.

Usually org.springframework.beans.factory.config.BeanFactoryPostProcessor beans are excluded since they have contributed their bean definitions code generated during AOT build phase.

Related:

Metadata

Metadata

Labels

in: webAn issue in web modules (web, webmvc)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions