Document that attribute
is optional in @AliasFor
for overrides with the same name
#34641
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
Originally, the
attribute
attribute in@AliasFor
was required; however, we later made it optional when the aliasing attribute and the aliased attribute (in a meta-annotation) have the same name.For example, the
path
attribute in@GetMapping
omits theattribute = "path"
declaration, since theannotation = RequestMapping.class
is sufficient.We should therefore document this feature in the Javadoc for
@AliasFor
to make users aware of this.The text was updated successfully, but these errors were encountered: