Document XML attributes in mvc:resource-chain in 4.1 XSD

Issue: SPR-12804
master
Sam Brannen 9 years ago
parent b439402d57
commit 42424d6359
  1. 37
      spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc-4.1.xsd

@ -471,10 +471,39 @@
<xsd:element name="resolvers" type="resource-resolvers" minOccurs="0" maxOccurs="1"/> <xsd:element name="resolvers" type="resource-resolvers" minOccurs="0" maxOccurs="1"/>
<xsd:element name="transformers" type="resource-transformers" minOccurs="0" maxOccurs="1"/> <xsd:element name="transformers" type="resource-transformers" minOccurs="0" maxOccurs="1"/>
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="resource-cache" type="xsd:boolean" use="required"/> <xsd:attribute name="resource-cache" type="xsd:boolean" use="required">
<xsd:attribute name="auto-registration" type="xsd:boolean" default="true" use="optional"/> <xsd:annotation>
<xsd:attribute name="cache-manager" type="xsd:string" use="optional"/> <xsd:documentation><![CDATA[
<xsd:attribute name="cache-name" type="xsd:string" use="optional"/> Whether the resource chain should cache resource resolution.
Note that the resource content itself won't be cached, but rather Resource instances.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="auto-registration" type="xsd:boolean" default="true" use="optional">
<xsd:annotation>
<xsd:documentation><![CDATA[
Whether to register automatically ResourceResolvers and ResourceTransformers.
Setting this property to "false" means that it gives developers full control over the registration process.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="cache-manager" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation><![CDATA[
The name of the Cache Manager to cache resource resolution. By default, a ConcurrentCacheMap will be used.
Since Resources aren't serializable and can be dependent on the application host, one should not use a
distributed cache but rather an in-memory cache.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="cache-name" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation><![CDATA[
The cache name to use in the configured cache manager.
Will use "spring-resource-chain-cache" by default.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType> </xsd:complexType>
<xsd:element name="resources"> <xsd:element name="resources">

Loading…
Cancel
Save