|
|
|
@ -5366,12 +5366,10 @@ The following example shows how to achieve the same configuration in XML: |
|
|
|
You can configure how Spring MVC determines the requested media types from the request |
|
|
|
You can configure how Spring MVC determines the requested media types from the request |
|
|
|
(for example, `Accept` header, URL path extension, query parameter, and others). |
|
|
|
(for example, `Accept` header, URL path extension, query parameter, and others). |
|
|
|
|
|
|
|
|
|
|
|
By default, the URL path extension is checked first -- with `json`, `xml`, `rss`, and `atom` |
|
|
|
By default, only the `Accept` header is checked. |
|
|
|
registered as known extensions (depending on classpath dependencies). The `Accept` header |
|
|
|
|
|
|
|
is checked second. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Consider changing those defaults to `Accept` header only, and, if you must use URL-based |
|
|
|
If you must use URL-based content type resolution, consider using the query parameten |
|
|
|
content type resolution, consider using the query parameter strategy over path extensions. See |
|
|
|
strategy over path extensions. See |
|
|
|
<<mvc-ann-requestmapping-suffix-pattern-match>> and <<mvc-ann-requestmapping-rfd>> for |
|
|
|
<<mvc-ann-requestmapping-suffix-pattern-match>> and <<mvc-ann-requestmapping-rfd>> for |
|
|
|
more details. |
|
|
|
more details. |
|
|
|
|
|
|
|
|
|
|
|
|