Browse Source

Merge pull request #1681 from olivergierke-patch-1

* pr/1681:
  Add explicit anchor to discussion about constructor VS. setter injection
pull/1682/head
Stephane Nicoll 7 years ago
parent
commit
6bbc5b0f26
  1. 1
      src/docs/asciidoc/core/core-beans.adoc

1
src/docs/asciidoc/core/core-beans.adoc

@ -1020,6 +1020,7 @@ definitions, annotated components (i.e., classes annotated with `@Component`, @@ -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

Loading…
Cancel
Save