Polish "Improve Path Matching and Content Negotiation docs"

See gh-14977
pull/16246/head
Phillip Webb 6 years ago
parent 113abbe6e6
commit 43dd3cfa76

@ -2257,18 +2257,23 @@ suffix pattern matching, the following configuration is required:
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
----
spring.mvc.contentnegotiation.favor-path-extension=true
#Whether to use suffix pattern match (".*") when matching patterns to requests
spring.mvc.pathmatch.use-suffix-pattern=true
----
# You can also restrict that feature to known extensions only
# spring.mvc.pathmatch.use-registered-suffix-pattern=true
Alternatively, rather than open all suffix patterns, it's more secure to just support
registered suffix patterns:
# We can also register additional file extensions/media types with:
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
----
spring.mvc.contentnegotiation.favor-path-extension=true
spring.mvc.pathmatch.use-registered-suffix-pattern=true
# You can also register additional file extensions/media types with:
# spring.mvc.contentnegotiation.media-types.adoc=text/asciidoc
----
[[boot-features-spring-mvc-web-binding-initializer]]
==== ConfigurableWebBindingInitializer
Spring MVC uses a `WebBindingInitializer` to initialize a `WebDataBinder` for a

Loading…
Cancel
Save