Skip to content

Commit 6314df3

Browse files
committed
Update spring-mvc-3.2.xsd
The backport in commit cf39078 changed the spring-mvc-3.2.xsd. This change updates the same in the 4.2.x branch. Issue: SPR-14186
1 parent e67a274 commit 6314df3

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc-3.2.xsd

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
32
<xsd:schema xmlns="http://www.springframework.org/schema/mvc"
43
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
54
xmlns:beans="http://www.springframework.org/schema/beans"
@@ -23,6 +22,62 @@
2322
</xsd:annotation>
2423
<xsd:complexType>
2524
<xsd:all minOccurs="0">
25+
<xsd:element name="path-matching" minOccurs="0">
26+
<xsd:annotation>
27+
<xsd:documentation><![CDATA[
28+
Configures the path matching part of the Spring MVC Controller programming model.
29+
Like annotation-driven, code-based alternatives are also documented in EnableWebMvc javadoc.
30+
]]></xsd:documentation>
31+
</xsd:annotation>
32+
<xsd:complexType>
33+
<xsd:attribute name="suffix-pattern" type="xsd:boolean">
34+
<xsd:annotation>
35+
<xsd:documentation><![CDATA[
36+
Whether to use suffix pattern match (".*") when matching patterns to requests. If enabled
37+
a method mapped to "/users" also matches to "/users.*".
38+
The default value is true.
39+
]]></xsd:documentation>
40+
</xsd:annotation>
41+
</xsd:attribute>
42+
<xsd:attribute name="trailing-slash" type="xsd:boolean">
43+
<xsd:annotation>
44+
<xsd:documentation><![CDATA[
45+
Whether to match to URLs irrespective of the presence of a trailing slash.
46+
If enabled a method mapped to "/users" also matches to "/users/".
47+
The default value is true.
48+
]]></xsd:documentation>
49+
</xsd:annotation>
50+
</xsd:attribute>
51+
<xsd:attribute name="registered-suffixes-only" type="xsd:boolean">
52+
<xsd:annotation>
53+
<xsd:documentation><![CDATA[
54+
Whether suffix pattern matching should work only against path extensions
55+
explicitly registered when you configure content negotiation.
56+
This is generally recommended to reduce ambiguity and to
57+
avoid issues such as when a "." appears in the path for other reasons.
58+
The default value is false.
59+
]]></xsd:documentation>
60+
</xsd:annotation>
61+
</xsd:attribute>
62+
<xsd:attribute name="path-helper" type="xsd:string">
63+
<xsd:annotation>
64+
<xsd:documentation><![CDATA[
65+
The bean name of the UrlPathHelper to use for resolution of lookup paths.
66+
Use this to override the default UrlPathHelper with a custom subclass, or to share common UrlPathHelper settings across
67+
multiple HandlerMappings and MethodNameResolvers.
68+
]]></xsd:documentation>
69+
</xsd:annotation>
70+
</xsd:attribute>
71+
<xsd:attribute name="path-matcher" type="xsd:string">
72+
<xsd:annotation>
73+
<xsd:documentation><![CDATA[
74+
The bean name of the PathMatcher implementation to use for matching URL paths against registered URL patterns.
75+
Default is AntPathMatcher.
76+
]]></xsd:documentation>
77+
</xsd:annotation>
78+
</xsd:attribute>
79+
</xsd:complexType>
80+
</xsd:element>
2681
<xsd:element name="message-converters" minOccurs="0">
2782
<xsd:annotation>
2883
<xsd:documentation><![CDATA[

0 commit comments

Comments
 (0)