In Spring's many annotations, it is often found that many different attributes of different annotations play the same role, such as @RequestMapping's value
attribute and path
attribute. In order to keep their behavior consistent, such as the value of value
and the value of path
can not conflict, their values should always be equal. To handle these issues uniformly, Spring created the @AliasFor tag.
The @AliasFor tag has the following usage methods.
For example, the usage in @RequestMapping: