Consistent attribute documentation/formatting in spring-context and spring-mvc schemas

This commit is contained in:
Juergen Hoeller 2014-08-20 16:36:12 +02:00
parent 662d8aa9f1
commit b5763fe326
6 changed files with 218 additions and 231 deletions

View File

@ -25,24 +25,25 @@
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The location of the properties file to resolve placeholders against, as a Spring The location of the properties file to resolve placeholders against, as a Spring
resource location: a URL, a "classpath:" pseudo URL, or a relative file path. resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is Multiple locations may be specified, separated by commas. If neither location nor
specified, placeholders will be resolved against system properties. properties-ref is specified, placeholders will be resolved against system properties.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="properties-ref" type="xsd:string"> <xsd:attribute name="properties-ref" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation source="java:java.util.Properties"><![CDATA[ <xsd:documentation source="java:java.util.Properties"><![CDATA[
The bean name of a Java Properties object that will be used for property substitution. The bean name of a Properties object that will be used for property substitution.
If neither location nor properties-ref is specified, placeholders will be resolved against system properties. If neither location nor properties-ref is specified, placeholders will be resolved
against system properties.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="file-encoding" type="xsd:string"> <xsd:attribute name="file-encoding" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies the encoding to use for parsing properties files. Default is none, Specifies the encoding to use for parsing properties files. Default is none,
using the java.util.Properties default encoding. Only applies to classic using the java.util.Properties default encoding. Only applies to classic
properties files, not to XML files. properties files, not to XML files.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -50,39 +51,36 @@
<xsd:attribute name="order" type="xsd:integer"> <xsd:attribute name="order" type="xsd:integer">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies the order for this placeholder configurer. If more than one is present in a context Specifies the order for this placeholder configurer. If more than one is present
the order can be important since the first one to be match a placeholder will win. Often used in a context, the order can be important since the first one to be match a
in conjunction with placeholder will win.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" <xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies if failure to find the property resource location should be ignored. Default Specifies if failure to find the property resource location should be ignored.
is "false", meaning that if there is no file in the location specified an exception will Default is "false", meaning that if there is no file in the location specified
be raised at runtime. an exception will be raised at runtime.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="ignore-unresolvable" type="xsd:boolean" <xsd:attribute name="ignore-unresolvable" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies if failure to find the property value to replace a key should be ignored. Default Specifies if failure to find the property value to replace a key should be ignored.
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve Default is "false", meaning that this placeholder configurer will raise an exception
a key. Set to "true" to allow the configurer to pass on the key to any others in if it cannot resolve a key. Set to "true" to allow the configurer to pass on the key
the context that have not yet visited the key in question. to any others in the context that have not yet visited the key in question.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="local-override" type="xsd:boolean" <xsd:attribute name="local-override" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies whether local properties override properties from files. Default Specifies whether local properties override properties from files.
is "false": Properties from files override local defaults. Default is "false": Properties from files override local defaults.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
@ -104,12 +102,11 @@
traditional PropertyPlaceholderConfigurer component will be registered instead of the traditional PropertyPlaceholderConfigurer component will be registered instead of the
new PropertySourcesPlaceholderConfigurer. new PropertySourcesPlaceholderConfigurer.
See ConfigurableEnvironment Javadoc for more information on using. See ConfigurableEnvironment javadoc for more information on using.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation> <tool:annotation>
<tool:exports <tool:exports type="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"/>
type="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"/>
</tool:annotation> </tool:annotation>
</xsd:appinfo> </xsd:appinfo>
</xsd:annotation> </xsd:annotation>
@ -130,7 +127,7 @@
newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment
and its property sources are not interrogated when resolving placeholders. Users are and its property sources are not interrogated when resolving placeholders. Users are
encouraged to consider this attribute deprecated, and to take advantage of encouraged to consider this attribute deprecated, and to take advantage of
Environment/PropertySource mechanisms. See ConfigurableEnvironment Javadoc for examples. Environment/PropertySource mechanisms. See ConfigurableEnvironment javadoc for examples.
"ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties; "ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties;
"NEVER" indicates placeholders should be resolved only against local properties and never against system properties; "NEVER" indicates placeholders should be resolved only against local properties and never against system properties;
@ -184,7 +181,7 @@
@TransactionAttribute annotation. Consider the use of the <tx:annotation-driven> @TransactionAttribute annotation. Consider the use of the <tx:annotation-driven>
tag for that purpose. tag for that purpose.
See Javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext See javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext
for information on code-based alternatives to bootstrapping annotation-driven support. for information on code-based alternatives to bootstrapping annotation-driven support.
from XML. from XML.
]]></xsd:documentation> ]]></xsd:documentation>
@ -211,7 +208,7 @@
definitions just like to regular bean definitions, but it won't apply to the component definitions just like to regular bean definitions, but it won't apply to the component
scan settings themselves. scan settings themselves.
See Javadoc for org.springframework.context.annotation.ComponentScan for information See javadoc for org.springframework.context.annotation.ComponentScan for information
on code-based alternatives to bootstrapping component-scanning. on code-based alternatives to bootstrapping component-scanning.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -336,7 +333,7 @@
This will only happen if the AnnotationBeanConfigurerAspect is on the classpath This will only happen if the AnnotationBeanConfigurerAspect is on the classpath
(i.e. spring-aspects.jar), effectively activating "spring-configured" by default. (i.e. spring-aspects.jar), effectively activating "spring-configured" by default.
See Javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving See javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving
for information on code-based alternatives to bootstrapping load-time weaving support. for information on code-based alternatives to bootstrapping load-time weaving support.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>

View File

@ -25,24 +25,25 @@
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The location of the properties file to resolve placeholders against, as a Spring The location of the properties file to resolve placeholders against, as a Spring
resource location: a URL, a "classpath:" pseudo URL, or a relative file path. resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is Multiple locations may be specified, separated by commas. If neither location nor
specified, placeholders will be resolved against system properties. properties-ref is specified, placeholders will be resolved against system properties.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="properties-ref" type="xsd:string"> <xsd:attribute name="properties-ref" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation source="java:java.util.Properties"><![CDATA[ <xsd:documentation source="java:java.util.Properties"><![CDATA[
The bean name of a Java Properties object that will be used for property substitution. The bean name of a Properties object that will be used for property substitution.
If neither location nor properties-ref is specified, placeholders will be resolved against system properties. If neither location nor properties-ref is specified, placeholders will be resolved
against system properties.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="file-encoding" type="xsd:string"> <xsd:attribute name="file-encoding" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies the encoding to use for parsing properties files. Default is none, Specifies the encoding to use for parsing properties files. Default is none,
using the java.util.Properties default encoding. Only applies to classic using the java.util.Properties default encoding. Only applies to classic
properties files, not to XML files. properties files, not to XML files.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -50,39 +51,36 @@
<xsd:attribute name="order" type="xsd:token"> <xsd:attribute name="order" type="xsd:token">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies the order for this placeholder configurer. If more than one is present in a context Specifies the order for this placeholder configurer. If more than one is present
the order can be important since the first one to be match a placeholder will win. Often used in a context, the order can be important since the first one to be match a
in conjunction with placeholder will win.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" <xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies if failure to find the property resource location should be ignored. Default Specifies if failure to find the property resource location should be ignored.
is "false", meaning that if there is no file in the location specified an exception will Default is "false", meaning that if there is no file in the location specified
be raised at runtime. an exception will be raised at runtime.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="ignore-unresolvable" type="xsd:boolean" <xsd:attribute name="ignore-unresolvable" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies if failure to find the property value to replace a key should be ignored. Default Specifies if failure to find the property value to replace a key should be ignored.
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve Default is "false", meaning that this placeholder configurer will raise an exception
a key. Set to "true" to allow the configurer to pass on the key to any others in if it cannot resolve a key. Set to "true" to allow the configurer to pass on the key
the context that have not yet visited the key in question. to any others in the context that have not yet visited the key in question.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="local-override" type="xsd:boolean" <xsd:attribute name="local-override" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies whether local properties override properties from files. Default Specifies whether local properties override properties from files.
is "false": Properties from files override local defaults. Default is "false": Properties from files override local defaults.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
@ -104,12 +102,11 @@
traditional PropertyPlaceholderConfigurer component will be registered instead of the traditional PropertyPlaceholderConfigurer component will be registered instead of the
new PropertySourcesPlaceholderConfigurer. new PropertySourcesPlaceholderConfigurer.
See ConfigurableEnvironment Javadoc for more information on using. See ConfigurableEnvironment javadoc for more information on using.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation> <tool:annotation>
<tool:exports <tool:exports type="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"/>
type="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"/>
</tool:annotation> </tool:annotation>
</xsd:appinfo> </xsd:appinfo>
</xsd:annotation> </xsd:annotation>
@ -130,7 +127,7 @@
newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment
and its property sources are not interrogated when resolving placeholders. Users are and its property sources are not interrogated when resolving placeholders. Users are
encouraged to consider this attribute deprecated, and to take advantage of encouraged to consider this attribute deprecated, and to take advantage of
Environment/PropertySource mechanisms. See ConfigurableEnvironment Javadoc for examples. Environment/PropertySource mechanisms. See ConfigurableEnvironment javadoc for examples.
"ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties; "ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties;
"NEVER" indicates placeholders should be resolved only against local properties and never against system properties; "NEVER" indicates placeholders should be resolved only against local properties and never against system properties;
@ -184,7 +181,7 @@
@TransactionAttribute annotation. Consider the use of the <tx:annotation-driven> @TransactionAttribute annotation. Consider the use of the <tx:annotation-driven>
tag for that purpose. tag for that purpose.
See Javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext See javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext
for information on code-based alternatives to bootstrapping annotation-driven support. for information on code-based alternatives to bootstrapping annotation-driven support.
from XML. from XML.
]]></xsd:documentation> ]]></xsd:documentation>
@ -211,7 +208,7 @@
definitions just like to regular bean definitions, but it won't apply to the component definitions just like to regular bean definitions, but it won't apply to the component
scan settings themselves. scan settings themselves.
See Javadoc for org.springframework.context.annotation.ComponentScan for information See javadoc for org.springframework.context.annotation.ComponentScan for information
on code-based alternatives to bootstrapping component-scanning. on code-based alternatives to bootstrapping component-scanning.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -334,7 +331,7 @@
This will only happen if the AnnotationBeanConfigurerAspect is on the classpath This will only happen if the AnnotationBeanConfigurerAspect is on the classpath
(i.e. spring-aspects.jar), effectively activating "spring-configured" by default. (i.e. spring-aspects.jar), effectively activating "spring-configured" by default.
See Javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving See javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving
for information on code-based alternatives to bootstrapping load-time weaving support. for information on code-based alternatives to bootstrapping load-time weaving support.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>

View File

@ -25,24 +25,25 @@
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The location of the properties file to resolve placeholders against, as a Spring The location of the properties file to resolve placeholders against, as a Spring
resource location: a URL, a "classpath:" pseudo URL, or a relative file path. resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is Multiple locations may be specified, separated by commas. If neither location nor
specified, placeholders will be resolved against system properties. properties-ref is specified, placeholders will be resolved against system properties.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="properties-ref" type="xsd:string"> <xsd:attribute name="properties-ref" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation source="java:java.util.Properties"><![CDATA[ <xsd:documentation source="java:java.util.Properties"><![CDATA[
The bean name of a Java Properties object that will be used for property substitution. The bean name of a Properties object that will be used for property substitution.
If neither location nor properties-ref is specified, placeholders will be resolved against system properties. If neither location nor properties-ref is specified, placeholders will be resolved
against system properties.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="file-encoding" type="xsd:string"> <xsd:attribute name="file-encoding" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies the encoding to use for parsing properties files. Default is none, Specifies the encoding to use for parsing properties files. Default is none,
using the java.util.Properties default encoding. Only applies to classic using the java.util.Properties default encoding. Only applies to classic
properties files, not to XML files. properties files, not to XML files.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -50,39 +51,36 @@
<xsd:attribute name="order" type="xsd:token"> <xsd:attribute name="order" type="xsd:token">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies the order for this placeholder configurer. If more than one is present in a context Specifies the order for this placeholder configurer. If more than one is present
the order can be important since the first one to be match a placeholder will win. Often used in a context, the order can be important since the first one to be match a
in conjunction with placeholder will win.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" <xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies if failure to find the property resource location should be ignored. Default Specifies if failure to find the property resource location should be ignored.
is "false", meaning that if there is no file in the location specified an exception will Default is "false", meaning that if there is no file in the location specified
be raised at runtime. an exception will be raised at runtime.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="ignore-unresolvable" type="xsd:boolean" <xsd:attribute name="ignore-unresolvable" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies if failure to find the property value to replace a key should be ignored. Default Specifies if failure to find the property value to replace a key should be ignored.
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve Default is "false", meaning that this placeholder configurer will raise an exception
a key. Set to "true" to allow the configurer to pass on the key to any others in if it cannot resolve a key. Set to "true" to allow the configurer to pass on the key
the context that have not yet visited the key in question. to any others in the context that have not yet visited the key in question.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="local-override" type="xsd:boolean" <xsd:attribute name="local-override" type="xsd:boolean" default="false">
default="false">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Specifies whether local properties override properties from files. Default Specifies whether local properties override properties from files.
is "false": Properties from files override local defaults. Default is "false": Properties from files override local defaults.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
@ -104,12 +102,11 @@
traditional PropertyPlaceholderConfigurer component will be registered instead of the traditional PropertyPlaceholderConfigurer component will be registered instead of the
new PropertySourcesPlaceholderConfigurer. new PropertySourcesPlaceholderConfigurer.
See ConfigurableEnvironment Javadoc for more information on using. See ConfigurableEnvironment javadoc for more information on using.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation> <tool:annotation>
<tool:exports <tool:exports type="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"/>
type="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"/>
</tool:annotation> </tool:annotation>
</xsd:appinfo> </xsd:appinfo>
</xsd:annotation> </xsd:annotation>
@ -130,7 +127,7 @@
newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment newer PropertySourcesPlaceholderConfigurer variant. In this case, the Spring Environment
and its property sources are not interrogated when resolving placeholders. Users are and its property sources are not interrogated when resolving placeholders. Users are
encouraged to consider this attribute deprecated, and to take advantage of encouraged to consider this attribute deprecated, and to take advantage of
Environment/PropertySource mechanisms. See ConfigurableEnvironment Javadoc for examples. Environment/PropertySource mechanisms. See ConfigurableEnvironment javadoc for examples.
"ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties; "ENVIRONMENT" indicates placeholders should be resolved against the current Environment and against any local properties;
"NEVER" indicates placeholders should be resolved only against local properties and never against system properties; "NEVER" indicates placeholders should be resolved only against local properties and never against system properties;
@ -184,7 +181,7 @@
@TransactionAttribute annotation. Consider the use of the <tx:annotation-driven> @TransactionAttribute annotation. Consider the use of the <tx:annotation-driven>
tag for that purpose. tag for that purpose.
See Javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext See javadoc for org.springframework.context.annotation.AnnotationConfigApplicationContext
for information on code-based alternatives to bootstrapping annotation-driven support. for information on code-based alternatives to bootstrapping annotation-driven support.
from XML. from XML.
]]></xsd:documentation> ]]></xsd:documentation>
@ -211,7 +208,7 @@
definitions just like to regular bean definitions, but it won't apply to the component definitions just like to regular bean definitions, but it won't apply to the component
scan settings themselves. scan settings themselves.
See Javadoc for org.springframework.context.annotation.ComponentScan for information See javadoc for org.springframework.context.annotation.ComponentScan for information
on code-based alternatives to bootstrapping component-scanning. on code-based alternatives to bootstrapping component-scanning.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -334,7 +331,7 @@
This will only happen if the AnnotationBeanConfigurerAspect is on the classpath This will only happen if the AnnotationBeanConfigurerAspect is on the classpath
(i.e. spring-aspects.jar), effectively activating "spring-configured" by default. (i.e. spring-aspects.jar), effectively activating "spring-configured" by default.
See Javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving See javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving
for information on code-based alternatives to bootstrapping load-time weaving support. for information on code-based alternatives to bootstrapping load-time weaving support.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>

View File

@ -8,18 +8,17 @@
elementFormDefault="qualified" elementFormDefault="qualified"
attributeFormDefault="unqualified"> attributeFormDefault="unqualified">
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.2.xsd" /> <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"/>
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.2.xsd" /> <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.2.xsd"/>
<xsd:element name="annotation-driven"> <xsd:element name="annotation-driven">
<xsd:annotation> <xsd:annotation>
<xsd:documentation source="java:org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"><![CDATA[ <xsd:documentation source="java:org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"><![CDATA[
Configures the annotation-driven Spring MVC Controller programming model. Configures the annotation-driven Spring MVC Controller programming model.
Note that, with Spring 3.0, this tag works in Servlet MVC only! Note that this tag works in Web MVC only, not in Portlet MVC!
See org.springframework.web.servlet.config.annotation.EnableWebMvc Javadoc for See org.springframework.web.servlet.config.annotation.EnableWebMvc javadoc for details
information on code-based alternatives to enabling annotation-driven Spring MVC on code-based alternatives to enabling annotation-driven Spring MVC support.
support.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -39,14 +38,14 @@
<xsd:element ref="beans:bean"> <xsd:element ref="beans:bean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
An HttpMessageConverter bean definition. An HttpMessageConverter bean definition.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element ref="beans:ref"> <xsd:element ref="beans:ref">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
A reference to an HttpMessageConverter bean. A reference to an HttpMessageConverter bean.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
@ -65,8 +64,8 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Configures HandlerMethodArgumentResolver types to support custom controller method argument types. Configures HandlerMethodArgumentResolver types to support custom controller method argument types.
Using this option does not override the built-in support for resolving handler method arguments. Using this option does not override the built-in support for resolving handler method arguments.
To customize the built-in support for argument resolution configure RequestMappingHandlerAdapter directly. To customize the built-in support for argument resolution configure RequestMappingHandlerAdapter directly.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -85,8 +84,8 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Configures HandlerMethodReturnValueHandler types to support custom controller method return value handling. Configures HandlerMethodReturnValueHandler types to support custom controller method return value handling.
Using this option does not override the built-in support for handling return values. Using this option does not override the built-in support for handling return values.
To customize the built-in support for handling return values configure RequestMappingHandlerAdapter directly. To customize the built-in support for handling return values configure RequestMappingHandlerAdapter directly.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -153,7 +152,7 @@
<xsd:documentation source="java:org.springframework.core.task.AsyncTaskExecutor"><![CDATA[ <xsd:documentation source="java:org.springframework.core.task.AsyncTaskExecutor"><![CDATA[
The bean name of a default AsyncTaskExecutor to use when a controller method returns a {@link Callable}. The bean name of a default AsyncTaskExecutor to use when a controller method returns a {@link Callable}.
Controller methods can override this default on a per-request basis by returning an AsyncTask. Controller methods can override this default on a per-request basis by returning an AsyncTask.
By default a SimpleAsyncTaskExecutor is used which does not re-use threads and is not recommended for production. By default, a SimpleAsyncTaskExecutor is used which does not re-use threads and is not recommended for production.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation kind="ref"> <tool:annotation kind="ref">
@ -237,7 +236,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Matrix variables can appear in any path segment, each matrix variable separated with a ";" (semicolon). Matrix variables can appear in any path segment, each matrix variable separated with a ";" (semicolon).
For example "/cars;color=red;year=2012". By default they're removed from the URL. If this property For example "/cars;color=red;year=2012". By default, they're removed from the URL. If this property
is set to true, matrix variables are not removed from the URL, and the request mapping pattern is set to true, matrix variables are not removed from the URL, and the request mapping pattern
must use URI variable in path segments where matrix variables are expected. For example "/{cars}". must use URI variable in path segments where matrix variables are expected. For example "/{cars}".
Matrix variables can then be injected into a controller method with @MatrixVariable. Matrix variables can then be injected into a controller method with @MatrixVariable.
@ -247,7 +246,7 @@
<xsd:attribute name="ignoreDefaultModelOnRedirect" type="xsd:boolean"> <xsd:attribute name="ignoreDefaultModelOnRedirect" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
By default the content of the "default" model is used both during rendering and redirect scenarios. By default, the content of the "default" model is used both during rendering and redirect scenarios.
Alternatively a controller method can declare a RedirectAttributes argument and use it to provide attributes for a redirect. Alternatively a controller method can declare a RedirectAttributes argument and use it to provide attributes for a redirect.
Setting this flag to true ensures the "default" model is never used in a redirect scenario even if a RedirectAttributes argument is not declared. Setting this flag to true ensures the "default" model is never used in a redirect scenario even if a RedirectAttributes argument is not declared.
Setting it to false means the "default" model may be used in a redirect if the controller method doesn't declare a RedirectAttributes argument. Setting it to false means the "default" model may be used in a redirect if the controller method doesn't declare a RedirectAttributes argument.
@ -420,16 +419,16 @@
<xsd:element name="view-controller"> <xsd:element name="view-controller">
<xsd:annotation> <xsd:annotation>
<xsd:documentation <xsd:documentation source="java:org.springframework.web.servlet.mvc.ParameterizableViewController"><![CDATA[
source="java:org.springframework.web.servlet.mvc.ParameterizableViewController"><![CDATA[ Map a simple (logic-less) view controller to a specific URL path (or pattern)
Defines a simple Controller that selects a view to render the response. in order to render a response with a pre-configured status code and view.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="path" type="xsd:string" use="required"> <xsd:attribute name="path" type="xsd:string" use="required">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The URL path the view is mapped to. The URL path (or pattern) the controller is mapped to.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>

View File

@ -8,8 +8,8 @@
elementFormDefault="qualified" elementFormDefault="qualified"
attributeFormDefault="unqualified"> attributeFormDefault="unqualified">
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.0.xsd" /> <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"/>
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.0.xsd" /> <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.0.xsd"/>
<xsd:element name="annotation-driven"> <xsd:element name="annotation-driven">
<xsd:annotation> <xsd:annotation>
@ -17,70 +17,69 @@
Configures the annotation-driven Spring MVC Controller programming model. Configures the annotation-driven Spring MVC Controller programming model.
Note that this tag works in Web MVC only, not in Portlet MVC! Note that this tag works in Web MVC only, not in Portlet MVC!
See org.springframework.web.servlet.config.annotation.EnableWebMvc Javadoc for See org.springframework.web.servlet.config.annotation.EnableWebMvc javadoc for details
information on code-based alternatives to enabling annotation-driven Spring MVC on code-based alternatives to enabling annotation-driven Spring MVC support.
support.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
<xsd:all minOccurs="0"> <xsd:all minOccurs="0">
<xsd:element name="path-matching" minOccurs="0"> <xsd:element name="path-matching" minOccurs="0">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Configures the path matching part of the Spring MVC Controller programming model. Configures the path matching part of the Spring MVC Controller programming model.
Like annotation-driven, code-based alternatives are also documented in EnableWebMvc Javadoc. Like annotation-driven, code-based alternatives are also documented in EnableWebMvc javadoc.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="suffix-pattern" type="xsd:boolean"> <xsd:attribute name="suffix-pattern" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to use suffix pattern match (".*") when matching patterns to requests. If enabled Whether to use suffix pattern match (".*") when matching patterns to requests. If enabled
a method mapped to "/users" also matches to "/users.*". a method mapped to "/users" also matches to "/users.*".
The default value is true. The default value is true.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="trailing-slash" type="xsd:boolean"> <xsd:attribute name="trailing-slash" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to match to URLs irrespective of the presence of a trailing slash. Whether to match to URLs irrespective of the presence of a trailing slash.
If enabled a method mapped to "/users" also matches to "/users/". If enabled a method mapped to "/users" also matches to "/users/".
The default value is true. The default value is true.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="registered-suffixes-only" type="xsd:boolean"> <xsd:attribute name="registered-suffixes-only" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to use suffix pattern match for registered file extensions only when matching patterns to requests. Whether to use suffix pattern match for registered file extensions only when matching patterns to requests.
If enabled, a controller method mapped to "/users" also matches to "/users.json" assuming ".json" is a file extension registered with If enabled, a controller method mapped to "/users" also matches to "/users.json" assuming ".json" is a file extension registered with
the provided ContentNegotiationManager. This can be useful for allowing only specific URL extensions to be used as well as in cases the provided ContentNegotiationManager. This can be useful for allowing only specific URL extensions to be used as well as in cases
where a "." in the URL path can lead to ambiguous interpretation of path variable content, (e.g. given "/users/{user}" and incoming where a "." in the URL path can lead to ambiguous interpretation of path variable content, (e.g. given "/users/{user}" and incoming
URLs such as "/users/john.j.joe" and "/users/john.j.joe.json"). URLs such as "/users/john.j.joe" and "/users/john.j.joe.json").
If enabled, this attribute also enables suffix-pattern. The default value is false. If enabled, this attribute also enables suffix-pattern. The default value is false.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="path-helper" type="xsd:string"> <xsd:attribute name="path-helper" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The bean name of the UrlPathHelper to use for resolution of lookup paths. The bean name of the UrlPathHelper to use for resolution of lookup paths.
Use this to override the default UrlPathHelper with a custom subclass, or to share common UrlPathHelper settings across Use this to override the default UrlPathHelper with a custom subclass, or to share common UrlPathHelper settings across
multiple HandlerMappings and MethodNameResolvers. multiple HandlerMappings and MethodNameResolvers.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="path-matcher" type="xsd:string"> <xsd:attribute name="path-matcher" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The bean name of the PathMatcher implementation to use for matching URL paths against registered URL patterns. The bean name of the PathMatcher implementation to use for matching URL paths against registered URL patterns.
Default is AntPathMatcher. Default is AntPathMatcher.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="message-converters" minOccurs="0"> <xsd:element name="message-converters" minOccurs="0">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
@ -96,14 +95,14 @@
<xsd:element ref="beans:bean"> <xsd:element ref="beans:bean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
An HttpMessageConverter bean definition. An HttpMessageConverter bean definition.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element ref="beans:ref"> <xsd:element ref="beans:ref">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
A reference to an HttpMessageConverter bean. A reference to an HttpMessageConverter bean.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
@ -122,8 +121,8 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Configures HandlerMethodArgumentResolver types to support custom controller method argument types. Configures HandlerMethodArgumentResolver types to support custom controller method argument types.
Using this option does not override the built-in support for resolving handler method arguments. Using this option does not override the built-in support for resolving handler method arguments.
To customize the built-in support for argument resolution configure RequestMappingHandlerAdapter directly. To customize the built-in support for argument resolution configure RequestMappingHandlerAdapter directly.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -142,8 +141,8 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Configures HandlerMethodReturnValueHandler types to support custom controller method return value handling. Configures HandlerMethodReturnValueHandler types to support custom controller method return value handling.
Using this option does not override the built-in support for handling return values. Using this option does not override the built-in support for handling return values.
To customize the built-in support for handling return values configure RequestMappingHandlerAdapter directly. To customize the built-in support for handling return values configure RequestMappingHandlerAdapter directly.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -210,7 +209,7 @@
<xsd:documentation source="java:org.springframework.core.task.AsyncTaskExecutor"><![CDATA[ <xsd:documentation source="java:org.springframework.core.task.AsyncTaskExecutor"><![CDATA[
The bean name of a default AsyncTaskExecutor to use when a controller method returns a {@link Callable}. The bean name of a default AsyncTaskExecutor to use when a controller method returns a {@link Callable}.
Controller methods can override this default on a per-request basis by returning an AsyncTask. Controller methods can override this default on a per-request basis by returning an AsyncTask.
By default a SimpleAsyncTaskExecutor is used which does not re-use threads and is not recommended for production. By default, a SimpleAsyncTaskExecutor is used which does not re-use threads and is not recommended for production.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation kind="ref"> <tool:annotation kind="ref">
@ -294,7 +293,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Matrix variables can appear in any path segment, each matrix variable separated with a ";" (semicolon). Matrix variables can appear in any path segment, each matrix variable separated with a ";" (semicolon).
For example "/cars;color=red;year=2012". By default they're removed from the URL. If this property For example "/cars;color=red;year=2012". By default, they're removed from the URL. If this property
is set to true, matrix variables are not removed from the URL, and the request mapping pattern is set to true, matrix variables are not removed from the URL, and the request mapping pattern
must use URI variable in path segments where matrix variables are expected. For example "/{cars}". must use URI variable in path segments where matrix variables are expected. For example "/{cars}".
Matrix variables can then be injected into a controller method with @MatrixVariable. Matrix variables can then be injected into a controller method with @MatrixVariable.
@ -304,7 +303,7 @@
<xsd:attribute name="ignore-default-model-on-redirect" type="xsd:boolean"> <xsd:attribute name="ignore-default-model-on-redirect" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
By default the content of the "default" model is used both during rendering and redirect scenarios. By default, the content of the "default" model is used both during rendering and redirect scenarios.
Alternatively a controller method can declare a RedirectAttributes argument and use it to provide attributes for a redirect. Alternatively a controller method can declare a RedirectAttributes argument and use it to provide attributes for a redirect.
Setting this flag to true ensures the "default" model is never used in a redirect scenario even if a RedirectAttributes argument is not declared. Setting this flag to true ensures the "default" model is never used in a redirect scenario even if a RedirectAttributes argument is not declared.
Setting it to false means the "default" model may be used in a redirect if the controller method doesn't declare a RedirectAttributes argument. Setting it to false means the "default" model may be used in a redirect if the controller method doesn't declare a RedirectAttributes argument.
@ -472,35 +471,35 @@
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
<xsd:attribute name="path-matcher" type="xsd:string"> <xsd:attribute name="path-matcher" type="xsd:string">
<xsd:annotation> <xsd:annotation>
<xsd:documentation source="java:org.springframework.util.PathMatcher"><![CDATA[ <xsd:documentation source="java:org.springframework.util.PathMatcher"><![CDATA[
The bean name of a PathMatcher implementation to use with nested interceptors. This is an optional, The bean name of a PathMatcher implementation to use with nested interceptors. This is an optional,
advanced property required only if using custom PathMatcher implementations that support mapping advanced property required only if using custom PathMatcher implementations that support mapping
metadata other than the Ant path patterns supported by default. metadata other than the Ant path patterns supported by default.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation kind="ref"> <tool:annotation kind="ref">
<tool:expected-type type="java:org.springframework.util.PathMatcher" /> <tool:expected-type type="java:org.springframework.util.PathMatcher" />
</tool:annotation> </tool:annotation>
</xsd:appinfo> </xsd:appinfo>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="view-controller"> <xsd:element name="view-controller">
<xsd:annotation> <xsd:annotation>
<xsd:documentation <xsd:documentation source="java:org.springframework.web.servlet.mvc.ParameterizableViewController"><![CDATA[
source="java:org.springframework.web.servlet.mvc.ParameterizableViewController"><![CDATA[ Map a simple (logic-less) view controller to a specific URL path (or pattern)
Defines a simple Controller that selects a view to render the response. in order to render a response with a pre-configured status code and view.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="path" type="xsd:string" use="required"> <xsd:attribute name="path" type="xsd:string" use="required">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The URL path the view is mapped to. The URL path (or pattern) the controller is mapped to.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>

View File

@ -8,8 +8,8 @@
elementFormDefault="qualified" elementFormDefault="qualified"
attributeFormDefault="unqualified"> attributeFormDefault="unqualified">
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.1.xsd" /> <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.1.xsd"/>
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.1.xsd" /> <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.1.xsd"/>
<xsd:element name="annotation-driven"> <xsd:element name="annotation-driven">
<xsd:annotation> <xsd:annotation>
@ -17,9 +17,8 @@
Configures the annotation-driven Spring MVC Controller programming model. Configures the annotation-driven Spring MVC Controller programming model.
Note that this tag works in Web MVC only, not in Portlet MVC! Note that this tag works in Web MVC only, not in Portlet MVC!
See org.springframework.web.servlet.config.annotation.EnableWebMvc Javadoc for See org.springframework.web.servlet.config.annotation.EnableWebMvc javadoc for details
information on code-based alternatives to enabling annotation-driven Spring MVC on code-based alternatives to enabling annotation-driven Spring MVC support.
support.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -28,7 +27,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Configures the path matching part of the Spring MVC Controller programming model. Configures the path matching part of the Spring MVC Controller programming model.
Like annotation-driven, code-based alternatives are also documented in EnableWebMvc Javadoc. Like annotation-driven, code-based alternatives are also documented in EnableWebMvc javadoc.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
<xsd:complexType> <xsd:complexType>
@ -96,14 +95,14 @@
<xsd:element ref="beans:bean"> <xsd:element ref="beans:bean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
An HttpMessageConverter bean definition. An HttpMessageConverter bean definition.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element ref="beans:ref"> <xsd:element ref="beans:ref">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
A reference to an HttpMessageConverter bean. A reference to an HttpMessageConverter bean.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
@ -234,7 +233,7 @@
<xsd:documentation source="java:org.springframework.core.task.AsyncTaskExecutor"><![CDATA[ <xsd:documentation source="java:org.springframework.core.task.AsyncTaskExecutor"><![CDATA[
The bean name of a default AsyncTaskExecutor to use when a controller method returns a {@link Callable}. The bean name of a default AsyncTaskExecutor to use when a controller method returns a {@link Callable}.
Controller methods can override this default on a per-request basis by returning an AsyncTask. Controller methods can override this default on a per-request basis by returning an AsyncTask.
By default a SimpleAsyncTaskExecutor is used which does not re-use threads and is not recommended for production. By default, a SimpleAsyncTaskExecutor is used which does not re-use threads and is not recommended for production.
]]></xsd:documentation> ]]></xsd:documentation>
<xsd:appinfo> <xsd:appinfo>
<tool:annotation kind="ref"> <tool:annotation kind="ref">
@ -318,7 +317,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Matrix variables can appear in any path segment, each matrix variable separated with a ";" (semicolon). Matrix variables can appear in any path segment, each matrix variable separated with a ";" (semicolon).
For example "/cars;color=red;year=2012". By default they're removed from the URL. If this property For example "/cars;color=red;year=2012". By default, they're removed from the URL. If this property
is set to true, matrix variables are not removed from the URL, and the request mapping pattern is set to true, matrix variables are not removed from the URL, and the request mapping pattern
must use URI variable in path segments where matrix variables are expected. For example "/{cars}". must use URI variable in path segments where matrix variables are expected. For example "/{cars}".
Matrix variables can then be injected into a controller method with @MatrixVariable. Matrix variables can then be injected into a controller method with @MatrixVariable.
@ -328,7 +327,7 @@
<xsd:attribute name="ignore-default-model-on-redirect" type="xsd:boolean"> <xsd:attribute name="ignore-default-model-on-redirect" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
By default the content of the "default" model is used both during rendering and redirect scenarios. By default, the content of the "default" model is used both during rendering and redirect scenarios.
Alternatively a controller method can declare a RedirectAttributes argument and use it to provide attributes for a redirect. Alternatively a controller method can declare a RedirectAttributes argument and use it to provide attributes for a redirect.
Setting this flag to true ensures the "default" model is never used in a redirect scenario even if a RedirectAttributes argument is not declared. Setting this flag to true ensures the "default" model is never used in a redirect scenario even if a RedirectAttributes argument is not declared.
Setting it to false means the "default" model may be used in a redirect if the controller method doesn't declare a RedirectAttributes argument. Setting it to false means the "default" model may be used in a redirect if the controller method doesn't declare a RedirectAttributes argument.
@ -628,7 +627,7 @@
<xsd:attribute name="redirect-url" type="xsd:string" use="required"> <xsd:attribute name="redirect-url" type="xsd:string" use="required">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
By default the redirect URL is expected to be relative to the current ServletContext, By default, the redirect URL is expected to be relative to the current ServletContext,
i.e. as relative to the web application root. i.e. as relative to the web application root.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
@ -648,16 +647,15 @@
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to interpret a given redirect URL that starts with a slash ("/") Whether to interpret a given redirect URL that starts with a slash ("/")
as relative to the current ServletContext, i.e. as relative to the web as relative to the current ServletContext, i.e. as relative to the web
application root. application root. The default is "true".
By default set to "true".
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="keep-query-params" type="xsd:boolean"> <xsd:attribute name="keep-query-params" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to propagate the query parameters of the current request through to the target redirect URL. Whether to propagate the query parameters of the current request through
By default set to "false". to the target redirect URL. The default is "false".
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
@ -783,7 +781,7 @@
before or after it. before or after it.
When content negotiation is enabled the order property is set to highest priority When content negotiation is enabled the order property is set to highest priority
instead with the ContentNeogitatingViewResolver encapsulating all other registered instead with the ContentNegotiatingViewResolver encapsulating all other registered
view resolver instances. That way the resolvers registered through the MVC namespace view resolver instances. That way the resolvers registered through the MVC namespace
form self-encapsulated resolver chain. form self-encapsulated resolver chain.
]]></xsd:documentation> ]]></xsd:documentation>
@ -794,17 +792,17 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Registers a ContentNegotiatingViewResolver with the list of all other registered Registers a ContentNegotiatingViewResolver with the list of all other registered
ViewResolver instances used to set its "viewResolvers" property. See the Javadoc ViewResolver instances used to set its "viewResolvers" property. See the javadoc
of ContentNegotiatingViewResolver for more details. of ContentNegotiatingViewResolver for more details.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element name="jsp" type="urlViewResolverType"> <xsd:element name="jsp" type="urlViewResolverType">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register an InternalResourceViewResolver bean for JSP rendering. Register an InternalResourceViewResolver bean for JSP rendering.
By default "/WEB-INF/" is registered as a view name prefix and ".jsp" as a suffix. By default, "/WEB-INF/" is registered as a view name prefix and ".jsp" as a suffix.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element name="tiles" type="urlViewResolverType"> <xsd:element name="tiles" type="urlViewResolverType">
@ -813,14 +811,14 @@
Register a TilesViewResolver based on Tiles 3.x. Register a TilesViewResolver based on Tiles 3.x.
To configure Tiles you must also add a top-level <mvc:tiles> element To configure Tiles you must also add a top-level <mvc:tiles> element
or declare a TilesConfigurer bean. or declare a TilesConfigurer bean.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element name="freemarker" type="urlViewResolverType"> <xsd:element name="freemarker" type="urlViewResolverType">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register a FreeMarkerViewResolver. Register a FreeMarkerViewResolver.
By default ".ftl" is configured as a view name suffix. By default, ".ftl" is configured as a view name suffix.
To configure FreeMarker you must also add a top-level <mvc:freemarker> element To configure FreeMarker you must also add a top-level <mvc:freemarker> element
or declare a FreeMarkerConfigurer bean. or declare a FreeMarkerConfigurer bean.
]]></xsd:documentation> ]]></xsd:documentation>
@ -830,7 +828,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register a VelocityViewResolver. Register a VelocityViewResolver.
By default ".vm" is configured as a view name suffix. By default, ".vm" is configured as a view name suffix.
To configure Velocity you must also add a top-level <mvc:velocity> element To configure Velocity you must also add a top-level <mvc:velocity> element
or declare a VelocityConfigurer bean. or declare a VelocityConfigurer bean.
]]></xsd:documentation> ]]></xsd:documentation>
@ -840,7 +838,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register a GroovyMarkupViewResolver. Register a GroovyMarkupViewResolver.
By default ".tpl" is configured as a view name suffix. By default, ".tpl" is configured as a view name suffix.
To configure the Groovy markup template engine you must also add a top-level <mvc:groovy-markup> element To configure the Groovy markup template engine you must also add a top-level <mvc:groovy-markup> element
or declare a GroovyMarkupConfigurer bean. or declare a GroovyMarkupConfigurer bean.
]]></xsd:documentation> ]]></xsd:documentation>
@ -850,21 +848,21 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register a BeanNameViewResolver bean. Register a BeanNameViewResolver bean.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element ref="beans:bean"> <xsd:element ref="beans:bean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register a ViewResolver as a direct bean declaration. Register a ViewResolver as a direct bean declaration.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
<xsd:element ref="beans:ref"> <xsd:element ref="beans:ref">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Register a ViewResolver through references to an existing bean declaration. Register a ViewResolver through references to an existing bean declaration.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
@ -887,7 +885,7 @@
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The location of a file containing Tiles definitions (or a Spring resource pattern). The location of a file containing Tiles definitions (or a Spring resource pattern).
If no Tiles definitions are registerd, then "/WEB-INF/tiles.xml" is expected to exists. If no Tiles definitions are registerd, then "/WEB-INF/tiles.xml" is expected to exists.
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
</xsd:complexType> </xsd:complexType>
@ -898,14 +896,14 @@
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to check Tiles definition files for a refresh at runtime. Whether to check Tiles definition files for a refresh at runtime.
Default is "false". Default is "false".
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="validate-definitions" type="xsd:boolean"> <xsd:attribute name="validate-definitions" type="xsd:boolean">
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
Whether to validate the Tiles XML definitions. Default is "true". Whether to validate the Tiles XML definitions. Default is "true".
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
</xsd:complexType> </xsd:complexType>
@ -926,7 +924,7 @@
<xsd:annotation> <xsd:annotation>
<xsd:documentation><![CDATA[ <xsd:documentation><![CDATA[
The location of a FreeMarker template loader path (or a Spring resource pattern). The location of a FreeMarker template loader path (or a Spring resource pattern).
]]></xsd:documentation> ]]></xsd:documentation>
</xsd:annotation> </xsd:annotation>
</xsd:attribute> </xsd:attribute>
</xsd:complexType> </xsd:complexType>