Skip to content

Commit 46655f3

Browse files
committed
Polishing
1 parent 4b7292f commit 46655f3

File tree

1 file changed

+2
-2
lines changed
  • framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-methods

1 file changed

+2
-2
lines changed

framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-methods/requestparam.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Kotlin::
6161

6262
By default, method parameters that use this annotation are required, but you can specify that
6363
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.
6565

6666
Type conversion is automatically applied if the target method parameter type is not
6767
`String`. See xref:web/webmvc/mvc-controller/ann-methods/typeconversion.adoc[Type Conversion].
@@ -86,7 +86,7 @@ Java::
8686
8787
// ...
8888
89-
@PostMapping(value = "/process", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
89+
@PostMapping(path = "/process", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
9090
public String processForm(@RequestParam MultiValueMap<String, String> params) {
9191
// ...
9292
}

0 commit comments

Comments
 (0)