From 170d8ba5c45b462faec70e57bf9d8f7abe41d779 Mon Sep 17 00:00:00 2001 From: nkjackzhang Date: Fri, 9 Sep 2016 18:25:04 +0800 Subject: [PATCH] Fix typo There is no attribute named `path` in `@RequestParam`, so I change it to `name`. Closes gh-1165 --- src/asciidoc/web-mvc.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asciidoc/web-mvc.adoc b/src/asciidoc/web-mvc.adoc index afa30f02e04..15e76b60d14 100644 --- a/src/asciidoc/web-mvc.adoc +++ b/src/asciidoc/web-mvc.adoc @@ -1483,7 +1483,7 @@ The following code snippet shows the usage: Parameters using this annotation are required by default, but you can specify that a parameter is optional by setting ``@RequestParam``'s `required` attribute to `false` -(e.g., `@RequestParam(path="id", required=false)`). +(e.g., `@RequestParam(name="id", required=false)`). Type conversion is applied automatically if the target method parameter type is not `String`. See <>.