From 30316b16e5c98c78d8050e26903d99622bff2405 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 13 Feb 2018 17:23:58 +0100 Subject: [PATCH] Add explicit anchor to discussion about constructor VS. setter injection This commit adds an Asciidoc anchor to the section on different injection styles to be able to link to the discussion as official recommendation. Closes gh-1681 --- src/docs/asciidoc/core/core-beans.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index 0a1a7beb804..9a65fdbcd12 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -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