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).
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) namedautowireCandidate
in 5.1 (#20752).Issue Links:
@Bean
Referenced from: commits c8869d9
The text was updated successfully, but these errors were encountered: