Merge pull request #1681 from olivergierke-patch-1

* pr/1681:
  Add explicit anchor to discussion about constructor VS. setter injection
This commit is contained in:
Stephane Nicoll 2018-02-13 17:31:36 +01:00
commit 6bbc5b0f26
1 changed files with 1 additions and 0 deletions

View File

@ -1020,6 +1020,7 @@ definitions, annotated components (i.e., classes annotated with `@Component`,
sources are then converted internally into instances of `BeanDefinition` and used to
load an entire Spring IoC container instance.
[[beans-constructor-vs-setter-injection]]
.Constructor-based or setter-based DI?
****
Since you can mix constructor-based and setter-based DI, it is a good rule of thumb to