The method parameter may be declared as type jakarta.
or as cookie value type (String, int, etc.).
Note that with spring-webmvc 5.3.x and earlier, the cookie value is URL
decoded. This will be changed in 6.0 but in the meantime, applications can
also declare parameters of type jakarta. to access
the raw value.
RequestMapping, RequestParam, RequestHeader, org.springframework.web.bind.annotation.RequestMapping
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public boolean | |
| public String |
| defaultValue | back to summary |
|---|---|
| public String defaultValue() The default value to use as a fallback. Supplying a default value implicitly sets | |
| name | back to summary |
|---|---|
| public String name() The name of the cookie to bind to.
| |
| required | back to summary |
|---|---|
| public boolean required() Whether the cookie is required. Defaults to Alternatively, provide a | |
| value | back to summary |
|---|---|
| public String value() Alias for
| |