File tree 1 file changed +9
-0
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/annotation
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 48
48
* Bean property setter methods are effectively just a special case of such a general
49
49
* config method. Such config methods do not have to be public.
50
50
*
51
+ * <h3>Autowired Parameters</h3>
52
+ * <p>Although {@code @Autowired} can technically be declared on individual method
53
+ * or constructor parameters since Spring Framework 5.0, most parts of the
54
+ * framework ignore such declarations. The only part of the core Spring Framework
55
+ * that actively supports autowired parameters is the JUnit Jupiter support in
56
+ * the {@code spring-test} module (see the
57
+ * <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/testing.html#testcontext-junit-jupiter-di">TestContext framework</a>
58
+ * reference documentation for details).
59
+ *
51
60
* <h3>Multiple Arguments and 'required' Semantics</h3>
52
61
* <p>In the case of a multi-arg constructor or method, the 'required' parameter is
53
62
* applicable to all arguments. Individual parameters may be declared as Java-8 style
You can’t perform that action at this time.
0 commit comments