You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
232
232
if (contentNegotiation.getParameterName() != null) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcProperties.java
+15-15
Original file line number
Diff line number
Diff line change
@@ -87,11 +87,6 @@ public class WebMvcProperties {
87
87
*/
88
88
privatebooleanlogResolvedException = false;
89
89
90
-
/**
91
-
* Maps file extensions to media types for content negotiation, e.g. yml to text/yaml.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+9
Original file line number
Diff line number
Diff line change
@@ -409,6 +409,15 @@
409
409
"description": "Whether to enable Spring's HttpPutFormContentFilter.",
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -471,7 +471,8 @@ public void customAsyncRequestTimeout() {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -395,6 +395,7 @@ content into your application. Rather, pick only the properties that you need.
395
395
spring.mvc.async.request-timeout= # Amount of time before asynchronous request handling times out.
396
396
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.
397
397
spring.mvc.content-negotiation.favor-parameter=false # Whether a request parameter ("format" by default) should be used to determine the requested media type.
398
+
spring.mvc.content-negotiation.media-types.*= # Maps file extensions to media types for content negotiation.
398
399
spring.mvc.content-negotiation.parameter-name= # Query parameter name to use when "favor-parameter" is enabled.
399
400
spring.mvc.date-format= # Date format to use. For instance, `dd/MM/yyyy`.
400
401
spring.mvc.dispatch-trace-request=false # Whether to dispatch TRACE requests to the FrameworkServlet doService method.
@@ -405,9 +406,8 @@ content into your application. Rather, pick only the properties that you need.
405
406
spring.mvc.locale= # Locale to use. By default, this locale is overridden by the "Accept-Language" header.
406
407
spring.mvc.locale-resolver=accept-header # Define how the locale should be resolved.
407
408
spring.mvc.log-resolved-exception=false # Whether to enable warn logging of exceptions resolved by a "HandlerExceptionResolver".
408
-
spring.mvc.media-types.*= # Maps file extensions to media types for content negotiation.
409
409
spring.mvc.message-codes-resolver-format= # Formatting strategy for message codes. For instance, `PREFIX_ERROR_CODE`.
410
-
spring.mvc.path-match.use-registered-suffix-pattern=false # Whether suffix pattern matching should work only against path extensions explicitly registered with "spring.mvc.media-types.*".
410
+
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.*".
411
411
spring.mvc.path-match.use-suffix-pattern=false # Whether to use suffix pattern match (".*") when matching patterns to requests.
412
412
spring.mvc.servlet.load-on-startup=-1 # Load on startup priority of the Spring Web Services servlet.
413
413
spring.mvc.static-path-pattern=/** # Path pattern used for static resources.
0 commit comments