Skip to content

Minimize the number of beans created by RabbitAnnotationDrivenConfiguration #38067

@deeaitche

Description

@deeaitche

In RabbitAnnotationDrivenConfiguration, some beans may be created but unused.

When spring.rabbitmq.listener.type is missing value or simple, both directRabbitListenerContainerFactoryConfigurer and simpleRabbitListenerContainerFactoryConfigurer are created but directRabbitListenerContainerFactoryConfigurer is unused.

When spring.rabbitmq.listener.type is direct, both directRabbitListenerContainerFactoryConfigurer and simpleRabbitListenerContainerFactoryConfigurer are created but simpleRabbitListenerContainerFactoryConfigurer is unused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions