Skip to content

Document that @Bean nullable parameters imply optional injection of the bean [SPR-16053] #20602

@spring-projects-issues

Description

@spring-projects-issues

Jon Schneider opened SPR-16053 and commented

Question from Rob Fletcher:

If I autowire a @Bean method and one of the params is nullable (i.e. ? suffix) does that imply it’s non-required?


Affects: 5.0.1

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