How to Handle Cyclic Dependency Between Beans in Spring?
Briefly

A cyclic dependency occurs when two or more beans in Spring depend on each other, creating a cycle that can lead to initialization errors.
Spring encounters cyclic dependencies typically resulting in BeanCurrentlyInCreationException, indicating an attempt to create a bean based on another that's not fully initialized.
To resolve cyclic dependencies, developers can use methods such as the @Lazy annotation, which defers the initialization of a bean until it is actually needed.
Identifying cyclic dependencies can be facilitated by Spring's error messages, which often specify the involved beans, but may also require manual code review in complex setups.
Read at CodeProject
[
]
[
|
]