0
Spring circle reference resolution
Quite strange for me... I am a newer in Spring, and still didnât use to itâs âthink for usâ logic đ How can we solve a problem with two beans that inject each other in configuration .xml file? The compiler prints an error of âcircle referenceâ, meaning that the other bean is still âunder constructionâ? Doesnât happen in âclassyâ java api đ
1 Answer
+ 1
It can be fixed by using setter injection.
We can also use @Lazy at constructor injection point