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: {}
Comment From: snicoll
@axel7083 bean overriding is something we'd like to deprecate (#31288) so it should throw an exception upfront, which is what happens already by default with Spring Boot for a long time.
We can't really proceed until we understand how you ended up in this situation. Please create a small sample that we can run ourselves. You can attach a zip to this issue or push the code to a separate GitHub repository.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.