-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Cyclic dependency with constructor injection #26703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Background
Spring is discouraging use of filed injection, and in favor or constructor injection.
However, when the beans need to cross reference to each other. For example:
this will instead throw out exception
Changes
Instead of just saying "Field injection is not recommended", can we make it clear, by adding
?
Related Issues
The text was updated successfully, but these errors were encountered: