社区应用 最新帖子 精华区 社区服务 会员列表 统计排行 社区论坛任务 迷你宠物
  • 3664阅读
  • 0回复

struts2的struts.properties配置文件详解

级别: 终身会员
发帖
3743
铜板
8
人品值
493
贡献值
9
交易币
0
好评度
3746
信誉值
0
金币
0
所在楼道
struts2的struts.properties配置文件详解 t[r 6jo7  
Cag^$nj  
struts.action.extension XJ!?>)N .  
      The URL extension to use to determine if the request is meant for a Struts action BOOb{kcg  
      用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。 Kf-XL ),3l  
' 7Mz]@  
struts.configuration eQz.N<f"  
      The org.apache.struts2.config.Configuration implementation class cQkj{u  
        org.apache.struts2.config.Configuration接口名 KE.O>M ,I.  
uO>x"D5tZ:  
struts.configuration.files w`DcnQK'  
      A list of configuration files automatically loaded by Struts QQ`tSYgex  
      struts自动加载的一个配置文件列表 u6 QW*8b4  
/mA\)TL|]  
struts.configuration.xml.reload H:EK&$sU  
      Whether to reload the XML configuration or not :>}7^1I  
      是否加载xml配置(true,false) 8.G<+.  
.]H/u "d  
struts.continuations.package ?S;z!) H)P  
      The package containing actions that use Rife continuations lVuBo&  
      含有actions的完整连续的package名称 * V7bALY  
vz(=3C[  
struts.custom.i18n.resources ]x).C[^  
      Location of additional localization properties files to load 9M^5<8:  
      加载附加的国际化属性文件(不包含.properties后缀) [,MaAB  
^q_wtuQ  
struts.custom.properties ,SPgop'  
      Location of additional configuration properties files to load NT2XG& $W>  
      加载附加的配置文件的位置 "n{';Q)  
ALn_ifNh  
H,W8JNPs  
struts.devMode =jKu=!QPq  
      Whether Struts is in development mode or not /Xj{]i3{  
      是否为struts开发模式 ,na}' A@a`  
*o5[P\'6  
struts.dispatcher.parametersWorkaround eIy:5/s  
      Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic ju5o).!bg  
        (某些版本的weblogic专用)是否使用一个servlet请求参数工作区(PARAMETERSWORKAROUND) s$zm)y5  
l-cBN^^  
struts.enable.DynamicMethodInvocation JB%_&gX)v  
      Allows one to disable dynamic method invocation from the URL ~+d{:WY  
        允许动态方法调用 Qn|8Ic` *  
IhBQ1,&J  
struts.freemarker.manager.classname }z#M!~  
      The org.apache.struts2.views.freemarker.FreemarkerManager implementation class HY eCq9S  
      org.apache.struts2.views.freemarker.FreemarkerManager接口名 }t"K(oamm  
*- ~GVe  
struts.i18n.encoding Wuo:PX'/9  
      The encoding to use for localization messages ).`v&-cK4E  
      国际化信息内码 BQ<\[H;  
r*8a!jm?  
struts.i18n.reload @ ;@~=w  
      Whether the localization messages should automatically be reloaded }A]e C  
      是否国际化信息自动加载 3M(*q4A$"  
*iY:R  
struts.locale u  Fw1%  
      The default locale for the Struts application %I9f_5BlT8  
      默认的国际化地区信息 8ki3>"!A  
<KK.f9^o(  
struts.mapper.class pEz^z9  
      The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class Xn?.Od(  
        org.apache.struts2.dispatcher.mapper.ActionMapper接口 FfxD=\  
D"-Wo}"8O'  
struts.multipart.maxSize i-;#FT+ Xc  
      The maximize size of a multipart request (file upload) /F9Dg<#a  
      multipart请求信息的最大尺寸(文件上传用) l53Q"ajG  
<wb6)U.  
struts.multipart.parser hr&&b3W3p  
      The org.apache.struts2.dispatcher.multipart. 0:n"A,-p  
      MultiPartRequest parser implementation for a multipart request (file upload) (J.Z+s$:2  
      专为multipart请求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上传用) )iiaT~ ]  
]cv|dc=  
QcX\z\'vg  
struts.multipart.saveDir xo?'L&%  
      The directory to use for storing uploaded files i].E1},%  
      设置存储上传文件的目录夹 %o4v} mzV  
J)y g<*/3  
struts.objectFactory ZA. S X|m  
      The com.opensymphony.xwork2.ObjectFactory implementation class ]T|$nwQ  
      com.opensymphony.xwork2.ObjectFactory接口(spring) ` L 1+j  
Wu<;QY($5  
struts.objectFactory.spring.autoWire ykJ+LS{+  
      Whether Spring should autoWire or not 6M`gy|"(~  
      是否自动绑定Spring ,u^{zYoW  
:j .:t  
struts.objectFactory.spring.useClassCache R`DzVBLl  
      Whether Spring should use its class cache or not ?;htK_E\*  
      是否spring应该使用自身的cache d/F^ez  
Lfcy#3!  
struts.objectTypeDeterminer ~E((n  
      The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class 4)OOj14-V  
        com.opensymphony.xwork2.util.ObjectTypeDeterminer接口 LxGD=b  
3u[8;1}7Q  
struts.serve.static.browserCache ]|PTZ1?j  
If static content served by the Struts filter should set browser caching header properties or not P(Rl/eyRM  
      是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中 8x)i{>#i  
2Sa{=x N)  
struts.serve.static 0;T7fKj  
      Whether the Struts filter should serve static content or not ?!jJxhK<h  
      是否struts过滤器应该提供静态内容 `Mt|+iT$p  
\-]tvgA~&  
struts.tag.altSyntax 4U}J?EB?K  
      Whether to use the alterative syntax for the tags or not 8<T~AU8'*  
      是否可以用替代的语法替代tags l,]%D  
T(Q ~b  
struts.ui.templateDir s@"|o3BX  
      The directory containing UI templates svDnw cl  
      UI templates的目录夹 ]NBx5m+y@i  
#_S]\=N(  
struts.ui.theme 8@LWg d  
      The default UI template theme zI,Qc60B  
      默认的UI template主题 4v _Hh<%  
onRTX|#  
struts.url.http.port 2jC:uk  
      The HTTP port used by Struts URLs ebJTrh<{  
      设置http端口 gsEcvkj*  
'"\n,3h  
struts.url.https.port LI3L~6A>  
      The HTTPS port used by Struts URLs ;Wy03}K4J  
      设置https端口 jlF3LK)9q  
J;>~PXB  
struts.url.includeParams r9N?z2X  
      The default includeParams method to generate Struts URLs \/j,  
      在url中产生 默认的includeParams i~v[3e9y7  
7<)  
=`|BofR  
struts.velocity.configfile fV Y I  
      The Velocity configuration file path E:/!]sm!  
      velocity配置文件路径 d7r!<u&/  
yv]|Ce@8A  
struts.velocity.contexts T}msF  
      List of Velocity context names n!~ $Z/  
      velocity的context列表 ?yj g\S?L  
z7:* ,X  
e4Qjx*[G  
struts.velocity.manager.classname j #: ARb  
      org.apache.struts2.views.velocity.VelocityManager implementation class nj;3U^  
      org.apache.struts2.views.velocity.VelocityManager接口名 GXD<X_[  
KFO K%vbM  
struts.velocity.toolboxlocation 1,OkuyXy!>  
      The location of the Velocity toolbox <XDnAv0t  
      velocity工具盒的位置 j5:4/vD  
struts.xslt.nocache GT] >  
      Whether or not XSLT templates should not be cached _6h.<BR  
      是否XSLT模版应该被缓存 ?0KIM* .  
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
描述
快速回复

您目前还是游客,请 登录注册
批量上传需要先选择文件,再选择上传
认证码:
验证问题:
10+5=?,请输入中文答案:十五