Skip to content

Commit c8869d9

Browse files
committed
Deprecate autowire attribute on @bean annotation
Issue: SPR-17281
1 parent 69e8bcd commit c8869d9

File tree

1 file changed

+3
-0
lines changed
  • spring-context/src/main/java/org/springframework/context/annotation

1 file changed

+3
-0
lines changed

spring-context/src/main/java/org/springframework/context/annotation/Bean.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@
248248
* bean class itself expresses through annotations.
249249
* @see Autowire#BY_NAME
250250
* @see Autowire#BY_TYPE
251+
* @deprecated as of 5.1, since {@code @Bean} factory method argument resolution and
252+
* {@code @Autowired} processing supersede name/type-based bean property injection
251253
*/
254+
@Deprecated
252255
Autowire autowire() default Autowire.NO;
253256

254257
/**

0 commit comments

Comments
 (0)