Skip to content

Improve error message when using reserved bean name #31725

Closed as not planned
Closed as not planned
@axel7083

Description

@axel7083

Affects: v6


I created a TransactionManager forgetting that there was already a default bean with this name. From the error message it was very hard to figure out the name overlap issue.

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.TransactionManager' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions