Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Resposta
+ 1
It can be fixed by using setter injection.
We can also use @Lazy at constructor injection point