greetings all sometime in my app the logic forces me to use circular reference and i want to know how to enable this configuration in spring ?
See Question&Answers more detail:osgreetings all sometime in my app the logic forces me to use circular reference and i want to know how to enable this configuration in spring ?
See Question&Answers more detail:osTake a look at this article.
I would advice from the first option there. Circular dependencies are not a good sign and should be avoided. You can create a 3rd, helper class, for example.
The other two options are workarounds and will be harder to understand and debug later on.