Previously, when accessing action, the. Action suffix was used by default to access action. In fact, the default suffix is through the constant "struts. action. extension "For example: In struts. the following configurations can be performed in the XML file: <constant name = "struts. action. extension "value =" do "/> after this configuration, the path cannot be written as: http: // localhost: 8080/struts2/test/helloword. Http: // localhost: 8080/struts2/test/helloword. do. If you need to specify multiple request suffixes, multiple suffixes are separated by commas. For example: <constant name = "struts. action. extension "value =" do, Action "/> This constant can be stored in struts. in addition to the configuration in the XML file, you can also. configuration in properties: struts. action. extension = do, but we recommend that you use struts. in addition to the preceding variables, there are many constants in the configuration in the XML file, and constants can be defined in multiple configuration files. It is important to know the order in which struts2 loads constants. Below are the Loading Order of Several configuration files: struts-default.xml struts-plugin.xml struts. XML struts. properties web. XML Note: if the same constant is configured in multiple files, the constant value configured in the next file overwrites the constant value configured in the previous file. the functions and configurations of some constants are as follows: <! -- Specify the default sequence set, acting on the setcharacterencoding method of httpservletrequest and the output of freemarker and velocity --> <constant name = "struts. i18n. encoding" value = "UTF-8"/> <! -- This attribute specifies the request suffix to be processed by struts 2. The default value of this attribute is action, that is, all requests matching *. Action are processed by struts2. If you need to specify multiple request suffixes, multiple suffixes are separated by commas. --> <Constant name = "struts. Action. Extension" value = "do"/> <! -- Sets whether the browser caches static content. The default value is true (used in the production environment). It is best to disable it during development --> <constant name = "struts. serve. static. browsercache "value =" false "/> <! -- When the struts configuration file is modified, whether the system automatically reloads the file. The default value is false (used in the production environment). It is best to open the file during development --> <constant name = "struts. configuration. XML. reload "value =" true "/> <! -- Used in development mode to print more detailed error information --> <constant name = "struts. devmode" value = "true"/> <! -- Default view topic --> <constant name = "struts. UI. Theme" value = "simple"/> <! -When integrating with spring, specify that spring is responsible for creating action objects --> <constant name = "struts. objectfactory" value = "Spring"/> <! -This attribute sets whether struts 2 supports dynamic method calls. The default value of this attribute is true. To disable dynamic method calling, set this attribute to false. --> <Constant name = "struts. Enable. dynamicmethodinvocation" value = "false"/> <! -- Size limit of uploaded files --> <constant name = "struts. multipart. maxsize" value = "10701096"/>