Skip to content

Commit c661900

Browse files
committed
Polishing
1 parent 3ba0a79 commit c661900

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,19 +2195,19 @@ The following example shows how to get the cookie value:
21952195
<1> Get the value of the `JSESSIONID` cookie.
21962196
====
21972197

2198-
if the target method parameter type is not
2199-
`String`, type conversion is applied automatically. See <<mvc-ann-typeconversion>>.
2198+
If the target method parameter type is not `String`, type conversion is applied automatically.
2199+
See <<mvc-ann-typeconversion>>.
22002200

22012201

22022202
[[mvc-ann-modelattrib-method-args]]
22032203
==== `@ModelAttribute`
22042204
[.small]#<<web-reactive.adoc#webflux-ann-modelattrib-method-args, Same as in Spring WebFlux>>#
22052205

2206-
You can use the `@ModelAttribute` annotation on a method argument to access an attribute from the
2207-
model or have it be instantiated if not present. The model attribute is also overlain with
2208-
values from HTTP Servlet request parameters whose names match to field names. This is
2209-
referred to as data binding, and it saves you from having to deal with parsing and
2210-
converting individual query parameters and form fields. The following example shows how to do so:
2206+
You can use the `@ModelAttribute` annotation on a method argument to access an attribute from
2207+
the model or have it be instantiated if not present. The model attribute is also overlain with
2208+
values from HTTP Servlet request parameters whose names match to field names. This is referred
2209+
to as data binding, and it saves you from having to deal with parsing and converting individual
2210+
query parameters and form fields. The following example shows how to do so:
22112211

22122212
====
22132213
[source,java,indent=0]

0 commit comments

Comments
 (0)