From c6619006eb19e27d220f12659a6c1bf1eb9ce204 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sat, 30 Mar 2019 00:20:32 +0100 Subject: [PATCH] Polishing --- src/docs/asciidoc/web/webmvc.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc index a4c2e81778..16761003ed 100644 --- a/src/docs/asciidoc/web/webmvc.adoc +++ b/src/docs/asciidoc/web/webmvc.adoc @@ -2195,19 +2195,19 @@ The following example shows how to get the cookie value: <1> Get the value of the `JSESSIONID` cookie. ==== -if the target method parameter type is not -`String`, type conversion is applied automatically. See <>. +If the target method parameter type is not `String`, type conversion is applied automatically. +See <>. [[mvc-ann-modelattrib-method-args]] ==== `@ModelAttribute` [.small]#<># -You can use the `@ModelAttribute` annotation on a method argument to access an attribute from the -model or have it be instantiated if not present. The model attribute is also overlain with -values from HTTP Servlet request parameters whose names match to field names. This is -referred to as data binding, and it saves you from having to deal with parsing and -converting individual query parameters and form fields. The following example shows how to do so: +You can use the `@ModelAttribute` annotation on a method argument to access an attribute from +the model or have it be instantiated if not present. The model attribute is also overlain with +values from HTTP Servlet request parameters whose names match to field names. This is referred +to as data binding, and it saves you from having to deal with parsing and converting individual +query parameters and form fields. The following example shows how to do so: ==== [source,java,indent=0]