Skip to content

Commit

Permalink
Add deprecation notes to the WebMvc config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev authored and xcl(徐程林) committed Aug 16, 2020
1 parent 895beb2 commit cdb05b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
* {@link #setUseRegisteredSuffixPatternMatch(boolean) useRegisteredSuffixPatternMatch}
* are deprecated in order to discourage use of path extensions for request
* mapping and for content negotiation (with similar deprecations in
* {@link ContentNegotiationManager}). For further context, please read issue
* {@link org.springframework.web.accept.ContentNegotiationManagerFactoryBean
* ContentNegotiationManagerFactoryBean}). For further context, please read issue
* <a href="https://github.com/spring-projects/spring-framework/issues/24179">#24719</a>.
*
* @author Arjen Poutsma
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@
<xsd:documentation><![CDATA[
Whether to use suffix pattern match (".*") when matching patterns to requests. If enabled
a method mapped to "/users" also matches to "/users.*".
The default value is true.
In 5.2.4, suffix pattern matching was deprecated in order to discourage use of path
extensions for request mapping and for content negotiation (see deprecation notes on
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping and on
org.springframework.web.accept.ContentNegotiationManagerFactoryBean and
also see https://github.com/spring-projects/spring-framework/issues/24179.
The default value is true but in 5.3 it changes to false.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Expand All @@ -56,6 +63,13 @@
explicitly registered when you configure content negotiation.
This is generally recommended to reduce ambiguity and to
avoid issues such as when a "." appears in the path for other reasons.
In 5.2.4, suffix pattern matching was deprecated in order to discourage use of path
extensions for request mapping and for content negotiation (see deprecation notes on
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping and on
org.springframework.web.accept.ContentNegotiationManagerFactoryBean and
also see https://github.com/spring-projects/spring-framework/issues/24179.
The default value is false.
]]></xsd:documentation>
</xsd:annotation>
Expand Down

0 comments on commit cdb05b4

Please sign in to comment.