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
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public String |
| name | back to summary |
|---|---|
| public String name() The name of the request attribute to bind to. The default name is inferred from the method parameter name.
| |
| required | back to summary |
|---|---|
| public boolean required() Whether the request attribute is required. Defaults to | |
| value | back to summary |
|---|---|
| public String value() Alias for
| |