Skip to content

Document non-default candidate beans and Java-based configuration of non-autowire candidate beans #33392

@wilkinsona

Description

@wilkinsona

Affects: 6.2

As part of spring-projects/spring-boot#22403, I'd like to link to some Spring Framework reference documentation that explains defaultCandidate=false and shows how to use it. Unless the search is failing me, it doesn't appear to be mentioned at all in the reference documentation at the moment.

Something similar for autowireCandidate=false would also be useful for spring-projects/spring-boot#41526. I've found "Excluding a Bean from Autowiring" but it's focused purely on XML configuration.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions