Struts2 default. properties Chinese Version

Source: Internet
Author: User
Tags xslt
### Specify the struts2 configuration file manager, which is org. Apache. struts2.config. defaultconfiguration by default
### Developers can customize the configuration file manager, which can automatically load the struts2 configuration file to implement the configuration interface.
# Struts. Configuration = org. Apache. struts2.config. defaultconfiguration

### Set the default locale and character encoding
# Struts. locale = en_us
Struts. i18n. Encoding = UTF-8

### Specify the struts factory class
# Struts. objectfactory = spring

### Specify the spring Framework Assembly Mode
### Assembly methods: name, type, auto, and constructor (name is the default Assembly Mode)
Struts. objectfactory. Spring. autowire = Name

### This attribute specifies whether to cache beans when integrating spring. The value is true or false, and the default value is true.
Struts. objectfactory. Spring. useclasscache = true

### Specified type check
# Struts. objecttypedeterminer = Tiger
# Struts. objecttypedeterminer = notiger

### This attribute specifies the processing of mime-type multipart/form-data, File Upload
# Struts. multipart. parser = cos
# Struts. multipart. parser = Pell
Struts. multipart. parser = Jakarta
# Specify the temporary directory when uploading files. javax. servlet. Context. tempdir is used by default.
Struts. multipart. savedir =
Struts. multipart. maxsize = 2097152

### Load the custom property file (do not rewrite struts. properties !)
# Struts. Custom. properties = application, org/Apache/struts2/extension/custom

### Specify the request URL and action er. The default value is org. Apache. struts2.dispatcher. Mapper. defaultactionmapper.
# Struts. Mapper. Class = org. Apache. struts2.dispatcher. Mapper. defaultactionmapper

### Specify the suffix of an action. The default value is action.
Struts. Action. Extension = action ,,

### Used by filterdispatcher
### If true, the static content service is provided through the JAR file.
### If it is false, the static content must be in <context_path>/struts
Struts. Serve. Static = true

### Used by filterdispatcher
### Specify whether the browser caches static content. Set static content to false in the test phase and true in the release phase.
Struts. Serve. Static. browsercache = true

### Set whether dynamic method calling is supported. True is supported, and false is not supported.
Struts. Enable. dynamicmethodinvocation = true

### Set whether a diagonal line can be used in an action. The default value is false. If you want to use it, set it to true.
Struts. Enable. slashesinactionnames = false

### Whether expression syntax is allowed. The default value is true.
Struts. Tag. altsyntax = true

### Set whether to reload when the Struts. xml file is changed.
###-Struts. configuration. xml. reload = true
### Set whether struts is in development mode. The default value is false. this parameter is generally set to true in the test phase.
Struts. devmode = false

### Set whether to reload the resource file for each request. The default value is false.
Struts. i18n. reload = false

### Standard UI themes
### The default UI subject is XHTML, which can be simple, XHTML or Ajax.
Struts. UI. theme = XHTML
### Template directory
Struts. UI. templatedir = Template
# Set the template type. It can be FTL, Vm, or JSP.
Struts. UI. templatesuffix = FTL

### Locate the velocity. properties file. Default Value: velocity. Properties
Struts. Velocity. configfile = velocity. Properties

### Set the context of velocity.
Struts. Velocity. contexts =

### Locate toolbox.
Struts. Velocity. toolboxlocation =

### Specify the web application port.
Struts. url. http. Port = 80
### Specify the encrypted Port
Struts. URLs. HTTPS. Port = 443
### Set whether to include the parameter when generating a URL. The value can be none, get or all.
Struts. url. includeparams = get

### Set the international resource files to be loaded, which are separated by commas.
# Struts. Custom. i18n. Resources = testmessages, testmessages2

### Some web application servers cannot process httpservletrequest. getparametermap ()
### For WebLogic, Orion, and Solaris, set to true. The default value is false.
Struts. Dispatcher. parametersworkaround = false

### Specify the freemarker Manager
# Struts. freemarker. Manager. classname = org. Apache. struts2.views. freemarker. freemarkermanager

### Set whether to set cache for the freemarker Template
### The effect is equivalent to copying a template to web_app/templates.
Struts. freemarker. templatescache = false

### You do not need to modify this attribute.
Struts. freemarker. wrapper. altmap = true

### Specify whether the XSLT result is cached in the style sheet. Set the development stage to true and the release stage to false.
Struts. XSLT. nocache = false

### Set the list of files automatically loaded by struts.
Struts. configuration. Files = struts-default.xml, struts-plugin.xml, Struts. xml

### Set whether to select the namespace at any location before the last slash.
Struts. Mapper. alwaysselectfullnamespace = false

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.