Skip to content

Commit 155ef5f

Browse files
committed
Merge branch '5.1.x'
2 parents 46c0366 + 810b615 commit 155ef5f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ appropriate responses. By "`special beans`" we mean Spring-managed `Object` inst
208208
implement framework contracts. Those usually come with built-in contracts, but
209209
you can customize their properties and extend or replace them.
210210

211-
The following table lists the special beans detected by the `DispatcherHandler`:
211+
The following table lists the special beans detected by the `DispatcherServlet`:
212212

213213
[[mvc-webappctx-special-beans-tbl]]
214214
[cols="1,2", options="header"]
@@ -1319,7 +1319,7 @@ The following example has type and method level mappings:
13191319
==== URI patterns
13201320
[.small]#<<web-reactive.adoc#webflux-ann-requestmapping-uri-templates,Same as in Spring WebFlux>>#
13211321

1322-
You can map requests by using the following glob patterns and wildcards:
1322+
You can map requests by using the following global patterns and wildcards:
13231323

13241324
* `?` matches one character
13251325
* `*` matches zero or more characters within a path segment
@@ -1393,10 +1393,10 @@ When multiple patterns match a URL, they must be compared to find the best match
13931393
by using `AntPathMatcher.getPatternComparator(String path)`, which looks for patterns that are more
13941394
specific.
13951395

1396-
A pattern is less specific if it has a lower count of URI variables and single wildcards
1397-
counted as 1 and double wildcards counted as 2. Given an equal score, the longer pattern is
1398-
chosen. Given the same score and length, the pattern with more URI variables than wildcards
1399-
is chosen.
1396+
A pattern is less specific if it has a lower count of URI variables (counted as 1), single
1397+
wildcards (counted as 1), and double wildcards (counted as 2). Given an equal score, the
1398+
longer pattern is chosen. Given the same score and length, the pattern with more URI variables
1399+
than wildcards is chosen.
14001400

14011401
The default mapping pattern (`/{asterisk}{asterisk}`) is excluded from scoring and always
14021402
sorted last. Also, prefix patterns (such as `/public/{asterisk}{asterisk}`) are considered less
@@ -2220,7 +2220,7 @@ alternatively, set `@ModelAttribute(binding=false)`, as the following example sh
22202220
}
22212221
22222222
@PostMapping("update")
2223-
public String update(@Valid AccountUpdateForm form, BindingResult result,
2223+
public String update(@Valid AccountForm form, BindingResult result,
22242224
@ModelAttribute(binding=false) Account account) { <1>
22252225
// ...
22262226
}
@@ -2229,7 +2229,7 @@ alternatively, set `@ModelAttribute(binding=false)`, as the following example sh
22292229

22302230

22312231
You can automatically apply validation after data binding by adding the
2232-
`javax.validation.Valid` annotation or Spring's `@Validated` annotation (ee
2232+
`javax.validation.Valid` annotation or Spring's `@Validated` annotation (
22332233
<<core.adoc#validation-beanvalidation, Bean validation>> and
22342234
<<core.adoc#validation, Spring validation>>). The following example shows how to do so:
22352235

@@ -2382,7 +2382,7 @@ Java configuration keep this flag set to `false`, to maintain backwards compatib
23822382
However, for new applications, we recommend setting it to `true`.
23832383

23842384
Note that URI template variables from the present request are automatically made
2385-
available when expanding a redirect URL, and you need explicitly add them
2385+
available when expanding a redirect URL, and you don't need to explicitly add them
23862386
through `Model` or `RedirectAttributes`. The following example shows how to define a redirect:
23872387

23882388
[source,java,indent=0]

0 commit comments

Comments
 (0)