@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface RequestAttribute
The main motivation is to provide convenient access to request attributes from a controller method with an optional/required check and a cast to the target method parameter type.
RequestMapping
,
SessionAttribute
@AliasFor(value="value") public abstract String name
The default name is inferred from the method parameter name.