From cee9d1c08f92f49646da17545d0c7d7f737a62e2 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 29 Sep 2017 14:41:57 +0200 Subject: [PATCH] Fix formatting Closes gh-1483 --- src/docs/asciidoc/core/core-beans.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index e20b9c03acc..c231dc634f3 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -4479,7 +4479,7 @@ non-required constructors can be annotated. In that case, each is considered amo candidates and Spring uses the __greediest__ constructor whose dependencies can be satisfied, that is the constructor that has the largest number of arguments. -`@Autowired`'s __required__ attribute is recommended over the `@Required` annotation. +The __required__ attribute of `@Autowired` is recommended over the `@Required` annotation. The __required__ attribute indicates that the property is not required for autowiring purposes, the property is ignored if it cannot be autowired. `@Required`, on the other hand, is stronger in that it enforces the property that was set by any means supported