Struts2==>default.properties

###Project_name ==> Java Resources ==> Libraries ==> Web App Libraries
###                         ==> struts2-core-2.5.5.jar  ==> org.apache.struts2
###                        ==> static ==> default.properties


default.properties
# $Id$


# Licensed to the Apache Software Foundation (ASF) under one  or more contributor license agreements. 
# 授权给Apache软件基金会(ASF)在一个或多个贡献者许可协议。
# See the NOTICE file distributed with this work for additional information regarding copyright ownership. 
# 看到通知文件分布与这项工作有关版权所有权的额外信息。


# The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");
# ASF许可证这个文件给你在Apache许可下,2.0版本(“许可证”);
# you may not use this file except in compliance with the License. 
# 你可能不会使用这个文件符合许可除外。
# You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0
# 你可能会获得一份许可证


# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
# 除非适用法律要求或书面同意,在许可证下发布的软件是分布在一个“是”的基础上,没有任何形式的保证或条件,无论是明示或默示。


# See the License for the specific language governing permissions and limitations under the License.
# 看到许可下的特定语言管理权限和限制许可证。


### START SNIPPET: complete_file  
### 开始片段


### Struts default properties  ===>  Struts默认属性
###(can be overridden by a struts.properties file in the root of the classpath)  
### 可以覆盖由struts。属性文件的根类路径中


### This can be used to set your default locale and encoding scheme
### 这可以用于设置默认语言环境和编码方案
# struts.locale=en_US
struts.i18n.encoding=UTF-8


### if specified, the default object factory can be overridden here
### 如果指定,默认对象工厂可以覆盖
### Note: short-hand notation is supported in some cases, such as "spring"
###       Alternatively, you can provide a com.opensymphony.xwork2.ObjectFactory subclass name here
### 支持速记符号在某些情况下,如“spring”,或者,您可以提供一个com.opensymphony.xwork2.ObjectFactory子类的名字
# struts.objectFactory = spring


### specifies the autoWiring logic when using the SpringObjectFactory.
### valid values are: name, type, auto, and constructor (name is the default)
### 当使用SpringObjectFactory指定自动装配逻辑。有效值是:name, type, auto, and constructor(名字是默认的)
struts.objectFactory.spring.autoWire = name


### indicates to the struts-spring integration if Class instances should be cached
### this should, until a future Spring release makes it possible, be left as true
### unless you know exactly what you are doing!
### valid values are: true, false (true is the default)
### 指示struts-spring集成如果类实例应该缓存,直到未来的Spring可以发布,成为真正的,除非你知道你在做什么!有效值是:真的,假的(真的是默认的)
struts.objectFactory.spring.useClassCache = true


### ensures the autowire strategy is always respected.
### valid values are: true, false (false is the default)
### 确保自动装配策略总是受人尊敬的。有效值是:真的,假(假是默认的)
struts.objectFactory.spring.autoWire.alwaysRespect = false


### By default SpringObjectFactory doesn't support AOP
### This flag was added just temporally to check if nothing is broken
### See https://issues.apache.org/jira/browse/WW-4110
### 默认SpringObjectFactory不支持AOP这个标志添加只是暂时检查如果不打破 参考: https://issues.apache.org/jira/browse/ww-4110
struts.objectFactory.spring.enableAopSupport = false


### if specified, the default object type determiner can be overridden here  如果指定,默认对象类型限定词可以覆盖
### Note: short-hand notation is supported in some cases, such as "tiger" or "notiger" Alternatively, 
###       you can provide a com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation name here
### 支持速记符号在某些情况下,如“tiger”或“notiger”或者,您可以提供一个com.opensymphony.xwork2.util.ObjectTypeDeterminer实现的名字
### Note: By default, com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer is used which handles type detection
###       using generics. com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer was deprecated since XWork 2, it's
###       functions are integrated in DefaultObjectTypeDeterminer now.
###       To disable tiger support use the "notiger" property value here.
###    默认情况下,com.opensymphony.xwork2.util。使用DefaultObjectTypeDeterminer处理类型检测使用泛型。
###      com.opensymphony.xwork2.util。GenericsObjectTypeDeterminer XWork以来弃用2,它现在的功能集成在DefaultObjectTypeDeterminer。禁用tiger支持使用“notiger”属性值。
#struts.objectTypeDeterminer = tiger
#struts.objectTypeDeterminer = notiger


### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data
### 解析器处理HTTP POST请求,使用mime类型多部分/格式编码
# struts.multipart.parser=cos
# struts.multipart.parser=pell
# struts.multipart.parser=jakarta-stream
struts.multipart.parser=jakarta
# uses javax.servlet.context.tempdir by default
struts.multipart.saveDir=
struts.multipart.maxSize=2097152


### Load custom property files (does not override struts.properties!)
### 加载自定义属性文件(不覆盖struts.properties !)
# struts.custom.properties=application,org/apache/struts2/extension/custom


### How request URLs are mapped to and from actions 请求url映射到和如何行动
#struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper


### Used by the DefaultActionMapper  DefaultActionMapper所使用的
### You may provide a comma separated list, e.g. struts.action.extension=action,jnlp,do
### 你可以提供一个逗号分隔的列表,例如struts.action.extension=action,jnlp,do
### The blank extension allows you to match directory listings as well as pure action names
### 空白扩展允许你匹配操作目录清单以及纯粹的名字
### without interfering with static resources, which can be specified as an empty string
### 没有干扰静态资源,可以指定一个空字符串
### prior to a comma e.g. struts.action.extension=, or struts.action.extension=x,y,z,,
struts.action.extension=action,,


### Used by FilterDispatcher
### If true then Struts serves static content from inside its jar.
### If false then the static content must be available at <context_path>/struts
struts.serve.static=true


### Used by FilterDispatcher
### This is good for development where one wants changes to the static content be
### fetch on each request.
### NOTE: This will only have effect if struts.serve.static=true
### If true -> Struts will write out header for static contents such that they will
###             be cached by web browsers (using Date, Cache-Content, Pragma, Expires)
###             headers).
### If false -> Struts will write out header for static contents such that they are
###            NOT to be cached by web browser (using Cache-Content, Pragma, Expires
###            headers)
struts.serve.static.browserCache=true


### Set this to false if you wish to disable implicit dynamic method invocation
### via the URL request. This includes URLs like foo!bar.action, as well as params
### like method:bar (but not action:foo).
### An alternative to implicit dynamic method invocation is to use wildcard
### mappings, such as <action name="*/*" method="{2}" class="actions.{1}">
struts.enable.DynamicMethodInvocation = false


### Set this to true if you wish to allow slashes in your action names.  If false,
### Actions names cannot have slashes, and will be accessible via any directory
### prefix.  This is the traditional behavior expected of WebWork applications.
### Setting to true is useful when you want to use wildcards and store values
### in the URL, to be extracted by wildcard patterns, such as
### <action name="*/*" method="{2}" class="actions.{1}"> to match "/foo/edit" or
### "/foo/save".
struts.enable.SlashesInActionNames = false


### Disables support for action: prefix
struts.mapper.action.prefix.enabled = false


### Blocks access to actions in other namespace than current with action: prefix
struts.mapper.action.prefix.crossNamespaces = false


### use alternative syntax that requires %{} in most places
### to evaluate expressions for String attributes for tags
struts.tag.altSyntax=true


### when set to true, Struts will act much more friendly for developers. This
### includes:
### - struts.i18n.reload = true
### - struts.configuration.xml.reload = true
### - raising various debug or ignorable problems to errors
###   For example: normally a request to foo.action?someUnknownField=true should
###                be ignored (given that any value can come from the web and it
###                should not be trusted). However, during development, it may be
###                useful to know when these errors are happening and be told of
###                them right away.
struts.devMode = false


### when set to true, resource bundles will be reloaded on _every_ request.
### this is good during development, but should never be used in production
### struts.i18n.reload=false


### Standard UI theme
### Change this to reflect which path should be used for JSP control tag templates by default
struts.ui.theme=xhtml
struts.ui.templateDir=template
### Change this to use a different token to indicate template theme expansion
struts.ui.theme.expansion.token=~~~
#sets the default template type. Either ftl, vm, or jsp
struts.ui.templateSuffix=ftl


### Configuration reloading
### This will cause the configuration to reload struts.xml when it is changed
### struts.configuration.xml.reload=false


### Location of velocity.properties file.  defaults to velocity.properties
struts.velocity.configfile = velocity.properties


### Comma separated list of VelocityContext classnames to chain to the StrutsVelocityContext
struts.velocity.contexts =


### Location of the velocity toolbox
struts.velocity.toolboxlocation=


### used to build URLs, such as the UrlTag
struts.url.http.port = 80
struts.url.https.port = 443
### possible values are: none, get or all
struts.url.includeParams = none


### Load custom default resource bundles
# struts.custom.i18n.resources=testmessages,testmessages2


### workaround for some app servers that don't handle HttpServletRequest.getParameterMap()
### often used for WebLogic, Orion, and OC4J
struts.dispatcher.parametersWorkaround = false


### configure the Freemarker Manager class to be used
### Allows user to plug-in customised Freemarker Manager if necessary
### MUST extends off org.apache.struts2.views.freemarker.FreemarkerManager
#struts.freemarker.manager.classname=org.apache.struts2.views.freemarker.FreemarkerManager


### Enables caching of FreeMarker templates
### Has the same effect as copying the templates under WEB_APP/templates
### struts.freemarker.templatesCache=false


### Enables caching of models on the BeanWrapper 使BeanWrapper缓存模型
struts.freemarker.beanwrapperCache=false


### See the StrutsBeanWrapper javadocs for more information 看到StrutsBeanWrapper javadoc以获取更多信息
struts.freemarker.wrapper.altMap=true


### maxStrongSize for MruCacheStorage for freemarker, when set to 0 SoftCacheStorage which performs better in heavy loaded application
### check WW-3766 for more details
struts.freemarker.mru.max.strong.size=0


### configure the XSLTResult class to use stylesheet caching. 配置XSLTResult类来使用样式表缓存。
### Set to true for developers and false for production.  为开发人员和生产假设置为true。
struts.xslt.nocache=false


### Whether to always select the namespace to be everything before the last slash or not
### 是否总是选择名称空间的一切之前最后一个斜杠
struts.mapper.alwaysSelectFullNamespace=false


### Whether to allow static method access in OGNL expressions or not
### 是否允许静态方法访问OGNL表达式或不是
struts.ognl.allowStaticMethodAccess=false


### Whether to throw a RuntimeException when a property is not found
### in an expression, or when the expression evaluation fails
### 是否抛出RuntimeException属性表达式中没有找到时,或者当表达式求值失败
struts.el.throwExceptionOnFailure=false


### Logs as Warnings properties that are not found (very verbose) 日志作为警告属性没有找到(很详细)
struts.ognl.logMissingProperties=false




### Caches parsed OGNL expressions, but can lead to memory leaks if the application generates a lot of different expressions
### 缓存解析OGNL表达式,但可能导致内存泄漏如果应用程序生成一个很多不同的表情
struts.ognl.enableExpressionCache=true




### Indicates if Dispatcher should handle unexpected exceptions by calling sendError()
### or simply rethrow it as a ServletException to allow future processing by other frameworks like Spring Security
### 表明如果调度员处理意想不到的异常通过调用sendError()或简单地重新抛出它作为ServletException允许未来处理其他Spring这样的框架的安全
struts.handle.exception=true




### END SNIPPET 最后片段: complete_file






其它参考 :


struts.action.extension  设置struts2的后缀,默认为action
 struts.configuration org.apache.struts2.config.Configuration接口名
struts.configuration.files  struts自动加载的一个配置文件列表 默认加载struts-default.xml,struts-plugin.xml,struts.xml
struts.configuration.xml.reload 是否加载xml配置(true,false).默认为true
struts.continuations.package 含有actions.的完整连续的package名称
struts.custom.i18n.resources 加载附加的国际化属性文件
struts.custom.properties加载附加的配置文件的位置
sturts.devMode 是否为开发模式
struts.dispatcher.parametersWorkaround某些版本的weblogic专用,是否使用一个servlet请求参数工作区
struts.enable.DynamicMethodInvocation允许动态方法调用,使用通配符动态调用action
struts.freemarker.manager.classname org.apache.struts2.views.freemarker.FreemarkerManager接口名
struts.i18n.encoding国际化信息内码,编号,默认为utf-8
struts.i18n.reload是否国际化信息自动加载
struts.locale 默认的国际化地区信息
struts.mapper.class org.apache.struts2.dispatcher.mapper.ActionMapper接口
struts.multipart.maxSize  multipart请求信息的最大尺寸(文件上传用)
struts.multipart.parser
专为multipart请求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上传用)


struts.multipart.saveDir
设置存储上传文件的目录夹


struts.objectFactory
com.opensymphony.xwork2.ObjectFactory接口(spring)


struts.objectFactory.spring.autoWire
是否自动绑定Spring


struts.objectFactory.spring.useClassCache
是否spring应该使用自身的cache


struts.objectTypeDeterminer
com.opensymphony.xwork2.util.ObjectTypeDeterminer接口


struts.serve.static.browserCache
是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中


struts.serve.static
是否struts过滤器应该提供静态内容


struts.tag.altSyntax
是否可以用替代的语法替代tags


struts.ui.templateDir
UI templates的目录夹


struts.ui.theme
默认的UI template主题


struts.url.http.port
设置http端口


struts.url.https.port
设置https端口


struts.url.includeParams
在url中产生 默认的includeParams


struts.velocity.configfile
velocity配置文件路径,默认为velocity.properties


struts.velocity.contexts
velocity的context列表


struts.velocity.manager.classname
org.apache.struts2.views.velocity.VelocityManager接口名
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值