Skip to content

Commit f3f0bd2

Browse files
hrybsrstoyanchev
authored andcommitted
Fix content negotiation description
1 parent 6d01d49 commit f3f0bd2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5366,12 +5366,10 @@ The following example shows how to achieve the same configuration in XML:
53665366
You can configure how Spring MVC determines the requested media types from the request
53675367
(for example, `Accept` header, URL path extension, query parameter, and others).
53685368

5369-
By default, the URL path extension is checked first -- with `json`, `xml`, `rss`, and `atom`
5370-
registered as known extensions (depending on classpath dependencies). The `Accept` header
5371-
is checked second.
5369+
By default, only the `Accept` header is checked.
53725370

5373-
Consider changing those defaults to `Accept` header only, and, if you must use URL-based
5374-
content type resolution, consider using the query parameter strategy over path extensions. See
5371+
If you must use URL-based content type resolution, consider using the query parameten
5372+
strategy over path extensions. See
53755373
<<mvc-ann-requestmapping-suffix-pattern-match>> and <<mvc-ann-requestmapping-rfd>> for
53765374
more details.
53775375

0 commit comments

Comments
 (0)