Polishing

This commit is contained in:
Juergen Hoeller
2018-10-10 00:15:58 +02:00
parent 8d1499e168
commit a45bce1369
8 changed files with 32 additions and 29 deletions

View File

@@ -1380,13 +1380,13 @@ and security (see next section for more details).
To completely disable the use of file extensions, you must set both of these:
* `useSuffixPatternMatching(false)`, see <<mvc-config-path-matching,PathMatchConfigurer>>
* `favorPathExtension(false)`, see <<mvc-config-content-negotiation,ContentNeogiationConfigurer>>
* `favorPathExtension(false)`, see <<mvc-config-content-negotiation,ContentNegotiationConfigurer>>
URL-based content negotiation can still be useful, for example when typing a URL in a
browser. To enable that we recommend a query parameter based strategy to avoid most of
the issues that come with file extensions. Or if you must use file extensions, consider
restricting them to a list of explicitly registered extensions through the
`mediaTypes` property of <<mvc-config-content-negotiation,ContentNeogiationConfigurer>>.
`mediaTypes` property of <<mvc-config-content-negotiation,ContentNegotiationConfigurer>>.
[[mvc-ann-requestmapping-rfd]]