<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype struts public
"-// Apache Software Foundation // DTD struts configuration 2.3 // en"
Http://struts.apache.org/dtds/struts-2.3.dtd>
<Struts>
<! --
Constant: configuration constant
* Name: Specifies the "constant" configured in the default. properties resource file provided by the bottom layer of the struts2 framework"
* Value: Specifies the value of the configuration constant.
* In the Struts. xml file, the value of the configured constant overwrites the value of the constant configured in the underlying default. properties resource file.
* Configure the suffix of the Request connection on the page of the struts2 framework. If multiple request extensions are specified, separate them with commas (,).
* If the Struts. xml file and the Struts. properties file are configured simultaneously, the Struts. properties configuration takes effect.
* Since constants can be defined in multiple configuration files, we need to know the search sequence of struts2 loading constants:
1 struts-default.xml
2 struts-plugin.xml
3 struts. xml
4 struts. properties (created by yourself)
5. Web. xml
-->
<! -- <Constant name = "struts. Action. Extension" value = "do, love"> </constant> -->
<! -- Configure whether to reload the international resource file when it is modified. The default value is false, indicating not to load, and true indicates to load -->
<! -- <Constant name = "struts. i18n. Reload" value = "true"> </constant> -->
<! -- Whether to reload the struts2 framework configuration file when it is modified. The default value is false, indicating not to load, and true indicates to load -->
<! -- <Constant name = "struts. configuration. xml. Reload" value = "true"> </constant> -->
<! --
Configure the struts2 framework mode
* The default value is false, which is the production mode.
* True indicates the development mode and requires more debugging information.
### Des:
###-Struts. i18n. reload = true
###-Struts. configuration. xml. reload = true
-->
<Constant name = "struts. devmode" value = "true"> </constant>
<! -- Configure the dynamic method call and set it to disabled. The default value is true, which indicates the enabled status; false, which indicates the disabled status -->
<Constant name = "struts. Enable. dynamicmethodinvocation" value = "false"> </constant>
<! --
All resource files are configured. The suffix is omitted. If multiple resource files are configured, they are separated by commas. Not only international resource files
* Type converter error message resource file
* International resource files
* File Upload error message: resource file
-->
<Constant name = "struts. Custom. i18n. Resources"
Value = "cn. itcast. converter. converter,
CN. itcast. i18n. Resources,
CN. itcast. Upload. fileuploadmessage,
CN. itcast. ognl. Resources ">
</Constant>
<! -- Configure the total size of File Upload -->
<Constant name = "struts. multipart. maxsize" value = "2097152000"> </constant>
<! -- Introduce the custom configuration file -->
<Include file = "cN/itcast/primer/struts_primer.xml"> </include>
<Include file = "cN/itcast/resulttype/struts_resulttype.xml"> </include>
<Include file = "cN/itcast/pattern/struts_pattern.xml"> </include>
<Include file = "cN/itcast/converter/struts_converter.xml"> </include>
<Include file = "cN/itcast/Context/struts_context.xml"> </include>
<Include file = "cN/itcast/i18n/struts_i18n.xml"> </include>
<Include file = "cN/itcast/upload/struts_upload.xml"> </include>
<Include file = "cN/itcast/AOP/struts_aop.xml"> </include>
<Include file = "cN/itcast/validate/struts_validate.xml"> </include>
<Include file = "cN/itcast/ognl/struts_ognl.xml"> </include>
</Struts>
Struts. xml configuration file description