Skip to content

Commit 819e14f

Browse files
nkjackzhangsnicoll
authored andcommitted
Fix typo
There is no attribute named `path` in `@RequestParam`, so I change it to `name`. Closes gh-1165
1 parent fcf3ccb commit 819e14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asciidoc/web-mvc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ The following code snippet shows the usage:
14831483

14841484
Parameters using this annotation are required by default, but you can specify that a
14851485
parameter is optional by setting ``@RequestParam``'s `required` attribute to `false`
1486-
(e.g., `@RequestParam(path="id", required=false)`).
1486+
(e.g., `@RequestParam(name="id", required=false)`).
14871487

14881488
Type conversion is applied automatically if the target method parameter type is not
14891489
`String`. See <<mvc-ann-typeconversion>>.

0 commit comments

Comments
 (0)