-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: taskA general taskA general task
Milestone
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
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: taskA general taskA general task