Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Sep 17, 2018 · 0 comments
Closed

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

spring-projects-issues opened this issue Sep 17, 2018 · 0 comments
Assignees
Labels
in: core type: task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 17, 2018

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:

  • #20752 Support for autowire-candidate with @Bean

Referenced from: commits c8869d9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: task
Projects
None yet
Development

No branches or pull requests

2 participants