Remove - from path-match and content-negotiation properties
Closes gh-11913
This commit is contained in:
@@ -396,10 +396,10 @@ content into your application. Rather, pick only the properties that you need.
|
||||
|
||||
# SPRING MVC ({sc-spring-boot-autoconfigure}/web/servlet/WebMvcProperties.{sc-ext}[WebMvcProperties])
|
||||
spring.mvc.async.request-timeout= # Amount of time before asynchronous request handling times out.
|
||||
spring.mvc.content-negotiation.favor-parameter=false # Whether a request parameter ("format" by default) should be used to determine the requested media type.
|
||||
spring.mvc.content-negotiation.favor-path-extension=false # Whether the path extension in the URL path should be used to determine the requested media type.
|
||||
spring.mvc.content-negotiation.media-types.*= # Maps file extensions to media types for content negotiation.
|
||||
spring.mvc.content-negotiation.parameter-name= # Query parameter name to use when "favor-parameter" is enabled.
|
||||
spring.mvc.contentnegotiation.favor-parameter=false # Whether a request parameter ("format" by default) should be used to determine the requested media type.
|
||||
spring.mvc.contentnegotiation.favor-path-extension=false # Whether the path extension in the URL path should be used to determine the requested media type.
|
||||
spring.mvc.contentnegotiation.media-types.*= # Maps file extensions to media types for content negotiation.
|
||||
spring.mvc.contentnegotiation.parameter-name= # Query parameter name to use when "favor-parameter" is enabled.
|
||||
spring.mvc.date-format= # Date format to use. For instance, `dd/MM/yyyy`.
|
||||
spring.mvc.dispatch-trace-request=false # Whether to dispatch TRACE requests to the FrameworkServlet doService method.
|
||||
spring.mvc.dispatch-options-request=true # Whether to dispatch OPTIONS requests to the FrameworkServlet doService method.
|
||||
@@ -410,8 +410,8 @@ content into your application. Rather, pick only the properties that you need.
|
||||
spring.mvc.locale-resolver=accept-header # Define how the locale should be resolved.
|
||||
spring.mvc.log-resolved-exception=false # Whether to enable warn logging of exceptions resolved by a "HandlerExceptionResolver".
|
||||
spring.mvc.message-codes-resolver-format= # Formatting strategy for message codes. For instance, `PREFIX_ERROR_CODE`.
|
||||
spring.mvc.path-match.use-registered-suffix-pattern=false # Whether suffix pattern matching should work only against extensions registered with "spring.mvc.content-negotiation.media-types.*".
|
||||
spring.mvc.path-match.use-suffix-pattern=false # Whether to use suffix pattern match (".*") when matching patterns to requests.
|
||||
spring.mvc.pathmatch.use-registered-suffix-pattern=false # Whether suffix pattern matching should work only against extensions registered with "spring.mvc.contentnegotiation.media-types.*".
|
||||
spring.mvc.pathmatch.use-suffix-pattern=false # Whether to use suffix pattern match (".*") when matching patterns to requests.
|
||||
spring.mvc.servlet.load-on-startup=-1 # Load on startup priority of the Spring Web Services servlet.
|
||||
spring.mvc.static-path-pattern=/** # Path pattern used for static resources.
|
||||
spring.mvc.throw-exception-if-no-handler-found=false # Whether a "NoHandlerFoundException" should be thrown if no Handler was found to process a request.
|
||||
|
||||
@@ -2076,13 +2076,13 @@ will be mapped to `@GetMapping("/projects/spring-boot")`:
|
||||
|
||||
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
spring.mvc.content-negotiation.favor-parameter=true
|
||||
spring.mvc.contentnegotiation.favor-parameter=true
|
||||
|
||||
# We can change the parameter name, which is "format" by default:
|
||||
# spring.mvc.content-negotiation.parameter-name=myparam
|
||||
# spring.mvc.contentnegotiation.parameter-name=myparam
|
||||
|
||||
# We can also register additional file extensions/media types with:
|
||||
spring.mvc.content-negotiation.media-types.markdown=text/markdown
|
||||
spring.mvc.contentnegotiation.media-types.markdown=text/markdown
|
||||
----
|
||||
|
||||
If you understand the caveats and would still like your application to use
|
||||
@@ -2090,13 +2090,13 @@ suffix pattern matching, the following configuration is required:
|
||||
|
||||
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
spring.mvc.content-negotiation.favor-path-extension=true
|
||||
spring.mvc.contentnegotiation.favor-path-extension=true
|
||||
|
||||
# You can also restrict that feature to known extensions only
|
||||
# spring.mvc.path-match.use-registered-suffix-pattern=true
|
||||
# spring.mvc.pathmatch.use-registered-suffix-pattern=true
|
||||
|
||||
# We can also register additional file extensions/media types with:
|
||||
# spring.mvc.content-negotiation.media-types.adoc=text/asciidoc
|
||||
# spring.mvc.contentnegotiation.media-types.adoc=text/asciidoc
|
||||
----
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user