Browse Source

Improve wording in Javadoc for @⁠Autowired

#31235
pull/31237/head
Niharika Tiwari 1 year ago committed by GitHub
parent
commit
9d7f9b5284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-beans/src/main/java/org/springframework/beans/factory/annotation/Autowired.java

2
spring-beans/src/main/java/org/springframework/beans/factory/annotation/Autowired.java

@ -30,7 +30,7 @@ import java.lang.annotation.Target; @@ -30,7 +30,7 @@ import java.lang.annotation.Target;
* <h3>Autowired Constructors</h3>
* <p>Only one constructor of any given bean class may declare this annotation with the
* {@link #required} attribute set to {@code true}, indicating <i>the</i> constructor
* to autowire when used as a Spring bean. Furthermore, if the {@code required}
* to be autowired when used as a Spring bean. Furthermore, if the {@code required}
* attribute is set to {@code true}, only a single constructor may be annotated
* with {@code @Autowired}. If multiple <i>non-required</i> constructors declare the
* annotation, they will be considered as candidates for autowiring. The constructor

Loading…
Cancel
Save