Commit 43dd3cfa authored by Phillip Webb's avatar Phillip Webb

Polish "Improve Path Matching and Content Negotiation docs"

See gh-14977
parent 113abbe6
...@@ -2257,18 +2257,23 @@ suffix pattern matching, the following configuration is required: ...@@ -2257,18 +2257,23 @@ suffix pattern matching, the following configuration is required:
[source,properties,indent=0,subs="verbatim,quotes,attributes"] [source,properties,indent=0,subs="verbatim,quotes,attributes"]
---- ----
spring.mvc.contentnegotiation.favor-path-extension=true 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 spring.mvc.pathmatch.use-suffix-pattern=true
----
# You can also restrict that feature to known extensions only Alternatively, rather than open all suffix patterns, it's more secure to just support
# spring.mvc.pathmatch.use-registered-suffix-pattern=true 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 # spring.mvc.contentnegotiation.media-types.adoc=text/asciidoc
---- ----
[[boot-features-spring-mvc-web-binding-initializer]] [[boot-features-spring-mvc-web-binding-initializer]]
==== ConfigurableWebBindingInitializer ==== ConfigurableWebBindingInitializer
Spring MVC uses a `WebBindingInitializer` to initialize a `WebDataBinder` for a Spring MVC uses a `WebBindingInitializer` to initialize a `WebDataBinder` for a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment