Merge pull request #14977 from nishantraut
* pr/14977: Polish "Improve Path Matching and Content Negotiation docs" Improve Path Matching and Content Negotiation docs
This commit is contained in:
commit
a8ac091187
|
@ -2257,15 +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
|
||||
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…
Reference in New Issue