Skip to content

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

Closed

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

Activity

  1. added
    in: core
    type: task
    on Jan 11, 2019
  2. added this to the 5.1 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions