File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-methods Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Kotlin::
61
61
62
62
By default, method parameters that use this annotation are required, but you can specify that
63
63
a method parameter is optional by setting the `@RequestParam` annotation's `required` flag to
64
- `false` or by declaring the argument with an `java.util.Optional` wrapper.
64
+ `false` or by declaring the argument with a `java.util.Optional` wrapper.
65
65
66
66
Type conversion is automatically applied if the target method parameter type is not
67
67
`String`. See xref:web/webmvc/mvc-controller/ann-methods/typeconversion.adoc[Type Conversion].
86
86
87
87
// ...
88
88
89
- @PostMapping(value = "/process", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
89
+ @PostMapping(path = "/process", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
90
90
public String processForm(@RequestParam MultiValueMap<String, String> params) {
91
91
// ...
92
92
}
You can’t perform that action at this time.
0 commit comments