Deprecate autowire attribute on @Bean annotation

Issue: SPR-17281
This commit is contained in:
Juergen Hoeller 2018-09-17 19:09:21 +02:00
parent 69e8bcdf40
commit c8869d99f5
1 changed files with 3 additions and 0 deletions

View File

@ -248,7 +248,10 @@ public @interface Bean {
* bean class itself expresses through annotations.
* @see Autowire#BY_NAME
* @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;
/**