Spring uses an special logic for resolving this kind of circular dependencies with singleton beans. But this won't apply to other scopes. There is no elegant way of breaking this circular dependency, but a clumsy option could be this one:
Read full article from spring - Requested bean is currently in creation: Is there an unresolvable circular reference? - Stack Overflow
No comments:
Post a Comment