Skip to content

Reference documentation for @Autowired's required attribute is misleading #23428

Closed
@aCodeRancher

Description

@aCodeRancher

The Spring Framework 5 reference documentation for @Autowired states:

The required attribute of @Autowired is recommended over the @Required annotation on setter methods. The required attribute indicates that the property is not required for autowiring purposes. The property is ignored if it cannot be autowired.

I think it should be "required=false indicates that the property is not required...".

Please update it if you think I am correct.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions