Skip to content

Deprecate autowire attribute on @Bean annotation [SPR-17281] #21814

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits c8869d9

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions