Skip to content

Commit 810b615

Browse files
committed
Correct issus in Spring MVC section
Fixes #22282
1 parent 51f9e0a commit 810b615

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ The following example has type and method level mappings:
13591359
==== URI patterns
13601360
[.small]#<<web-reactive.adoc#webflux-ann-requestmapping-uri-templates,Same as in Spring WebFlux>>#
13611361

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

13641364
* `?` matches one character
13651365
* `*` matches zero or more characters within a path segment
@@ -1439,10 +1439,10 @@ When multiple patterns match a URL, they must be compared to find the best match
14391439
by using `AntPathMatcher.getPatternComparator(String path)`, which looks for patterns that are more
14401440
specific.
14411441

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

14471447
The default mapping pattern (`/{asterisk}{asterisk}`) is excluded from scoring and always
14481448
sorted last. Also, prefix patterns (such as `/public/{asterisk}{asterisk}`) are considered less
@@ -2291,7 +2291,7 @@ alternatively, set `@ModelAttribute(binding=false)`, as the following example sh
22912291
}
22922292
22932293
@PostMapping("update")
2294-
public String update(@Valid AccountUpdateForm form, BindingResult result,
2294+
public String update(@Valid AccountForm form, BindingResult result,
22952295
@ModelAttribute(binding=false) Account account) { <1>
22962296
// ...
22972297
}
@@ -2300,7 +2300,7 @@ alternatively, set `@ModelAttribute(binding=false)`, as the following example sh
23002300
====
23012301

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

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

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

24642464
====

0 commit comments

Comments
 (0)