Skip to content

Conversation

Haarolean
Copy link
Contributor

From now on, if a bean depends on itself we'll get such a message:

The dependencies of some of the beans in the application context form a cycle:

┌──->──┐
|  bean defined in org.springframework.boot.diagnostics.analyzer.BeanCurrentlyInCreationFailureAnalyzerTests$SelfReferenceBeanConfiguration
└──<-──┘

Closes #26269.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 28, 2021
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 28, 2021
@philwebb philwebb added this to the 2.3.x milestone Apr 28, 2021
@philwebb philwebb changed the title Improve single bean dependency cycle failure analysis message When a single bean causes a dependency cycle the failure analysis does not clearly illustrate the cycle Apr 28, 2021
@snicoll
Copy link
Member

snicoll commented Apr 30, 2021

@Haarolean thank you for making your first contribution to Spring Boot.

@snicoll snicoll modified the milestones: 2.3.x, 2.3.11 Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When a single bean causes a dependency cycle the failure analysis does not clearly illustrate the cycle
4 participants