Deprecate autowire attribute on @Bean annotation

Issue: SPR-17281
master
Juergen Hoeller 6 years ago
parent 69e8bcdf40
commit c8869d99f5
  1. 3
      spring-context/src/main/java/org/springframework/context/annotation/Bean.java

@ -248,7 +248,10 @@ public @interface Bean {
* bean class itself expresses through annotations. * bean class itself expresses through annotations.
* @see Autowire#BY_NAME * @see Autowire#BY_NAME
* @see Autowire#BY_TYPE * @see Autowire#BY_TYPE
* @deprecated as of 5.1, since {@code @Bean} factory method argument resolution and
* {@code @Autowired} processing supersede name/type-based bean property injection
*/ */
@Deprecated
Autowire autowire() default Autowire.NO; Autowire autowire() default Autowire.NO;
/** /**

Loading…
Cancel
Save