Closed
Description
Juergen Hoeller opened SPR-17281 and commented
Autowiring by name or type is rather outdated in the meantime, in particular in the context of annotation-driven configuration but also for functional configuration. Let's therefore deprecate the autowire
attribute on the @Bean
annotation as of 5.1, which also goes nicely with the introduction of the similarly (but differently purposed and potentially confusing) named autowireCandidate
in 5.1 (#20752).
Issue Links:
- Support for autowire-candidate with @Bean [SPR-16204] #20752 Support for autowire-candidate with
@Bean
Referenced from: commits c8869d9