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

struts2的struts.properties配置文件详解

级别: 终身会员
发帖
3743
铜板
8
人品值
493
贡献值
9
交易币
0
好评度
3746
信誉值
0
金币
0
所在楼道
struts2的struts.properties配置文件详解 (9I(e^@]  
mI,lW|/l,  
struts.action.extension xw}yl4WT{  
      The URL extension to use to determine if the request is meant for a Struts action >"b W'  
      用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。 'hU5]}=  
XdCP!iq*8  
struts.configuration -o%? ]S  
      The org.apache.struts2.config.Configuration implementation class 2A~o)7JaZ  
        org.apache.struts2.config.Configuration接口名 [(x*!,=  
TU^ZvAO&  
struts.configuration.files ,zM@)Q ;9  
      A list of configuration files automatically loaded by Struts j}//e%$a  
      struts自动加载的一个配置文件列表 eZ(ThA*2=t  
Hq:: F?  
struts.configuration.xml.reload HL4=P,'  
      Whether to reload the XML configuration or not ; >H1A  
      是否加载xml配置(true,false) s2SV   
9h\RXVk{tA  
struts.continuations.package 02t({>`  
      The package containing actions that use Rife continuations yPtE5"(o  
      含有actions的完整连续的package名称 2H.g!( Oza  
B;(U ?gC  
struts.custom.i18n.resources '[liZCg  
      Location of additional localization properties files to load S!u8JG1  
      加载附加的国际化属性文件(不包含.properties后缀) T(x@ gwc  
w6!97x  
struts.custom.properties _J6 Xq\  
      Location of additional configuration properties files to load r+C4<-dT  
      加载附加的配置文件的位置 G7"(,L` 5  
u*2?Gky  
?V!5VHa  
struts.devMode d%0Gsga}  
      Whether Struts is in development mode or not o0`']-)*2  
      是否为struts开发模式 xA7~"q&u  
|3e+ K.  
struts.dispatcher.parametersWorkaround 5Z_C (5)/Y  
      Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic ]>(pj9)  
        (某些版本的weblogic专用)是否使用一个servlet请求参数工作区(PARAMETERSWORKAROUND) \OkZ\!<hg  
Gl'G;F$Y-  
struts.enable.DynamicMethodInvocation W/BPf{U  
      Allows one to disable dynamic method invocation from the URL ;]grbqXVE  
        允许动态方法调用 41Q 5%2  
$L0sBW&  
struts.freemarker.manager.classname I m I$~q'  
      The org.apache.struts2.views.freemarker.FreemarkerManager implementation class q{9 \hEeb  
      org.apache.struts2.views.freemarker.FreemarkerManager接口名 $?W2'Xm!V  
q}L`8(a  
struts.i18n.encoding 5xdeuBEY8  
      The encoding to use for localization messages  4t(/F`  
      国际化信息内码 hH5~T5?\  
Ny7*MZ-  
struts.i18n.reload \_,p@r]Q  
      Whether the localization messages should automatically be reloaded rc[~S  
      是否国际化信息自动加载 9qCE{ [(  
m_0y]RfG  
struts.locale .8s-)I  
      The default locale for the Struts application f#:3 TJV  
      默认的国际化地区信息 %f&Y=  
HBe*wkPd  
struts.mapper.class Sk+XBX(}  
      The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class axUj3J>  
        org.apache.struts2.dispatcher.mapper.ActionMapper接口 ow9a^|@a  
!@Qk=Xkg  
struts.multipart.maxSize ^wBlQmW7J  
      The maximize size of a multipart request (file upload) M]6+s`?r  
      multipart请求信息的最大尺寸(文件上传用) \78^ O  
7s6+I_n  
struts.multipart.parser Ed u(dZbKg  
      The org.apache.struts2.dispatcher.multipart. %k4Qx5`?d  
      MultiPartRequest parser implementation for a multipart request (file upload) sPZwA0%  
      专为multipart请求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上传用) nC,QvV  
Hj r'C?[  
=QVkY7  
struts.multipart.saveDir 6:|;O  
      The directory to use for storing uploaded files `$JvWN,kB  
      设置存储上传文件的目录夹 /5Qh*.(S  
Qb?a[[3  
struts.objectFactory !gW`xVGv  
      The com.opensymphony.xwork2.ObjectFactory implementation class \;N+PE  
      com.opensymphony.xwork2.ObjectFactory接口(spring) o+{,>t  
AA[1[  
struts.objectFactory.spring.autoWire xk~gGT&  
      Whether Spring should autoWire or not }p6]az3  
      是否自动绑定Spring 0yC~"u[N Y  
`.pEI q^  
struts.objectFactory.spring.useClassCache a~ jb%i_  
      Whether Spring should use its class cache or not mM&P&mz/D  
      是否spring应该使用自身的cache :a/rwZ[r  
13F]7l-#  
struts.objectTypeDeterminer @Nsn0-B?ne  
      The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class (n7xYGfYS  
        com.opensymphony.xwork2.util.ObjectTypeDeterminer接口 8%B_nVc  
9R8q+2  
struts.serve.static.browserCache 0,RYO :`  
If static content served by the Struts filter should set browser caching header properties or not 5@>hjXi"Y  
      是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中 ?[ )}N _o#  
8d5#vm  
struts.serve.static d)-ZL*o  
      Whether the Struts filter should serve static content or not E{ c+`>CY  
      是否struts过滤器应该提供静态内容 =5Db^  
!Q|a R  
struts.tag.altSyntax -&7? !<f  
      Whether to use the alterative syntax for the tags or not 9k71h`5  
      是否可以用替代的语法替代tags `{{6vb^g  
[ K/l;Zd  
struts.ui.templateDir cJ$jU{}  
      The directory containing UI templates 9*s8%pL  
      UI templates的目录夹 THQ #zQ-  
05ClPT\BCr  
struts.ui.theme `Z,WKus  
      The default UI template theme ek<B=F  
      默认的UI template主题 of*T,MUI  
uQdH ():  
struts.url.http.port z{OL+-OY  
      The HTTP port used by Struts URLs B(Yg1jAe  
      设置http端口 z8a{M$-Q  
.B~yI3D`M  
struts.url.https.port B)@Xz<Q  
      The HTTPS port used by Struts URLs rT4Q^t"  
      设置https端口 uxL+oP0  
QDYuJ&!h  
struts.url.includeParams C2rG3X^~Jm  
      The default includeParams method to generate Struts URLs S\N l|U[  
      在url中产生 默认的includeParams " J9  
5fk A?Ecqq  
3HtM<su*h  
struts.velocity.configfile I-!7 EC2{!  
      The Velocity configuration file path kIS )*_  
      velocity配置文件路径 _ -RqkRI  
Wtu-g**KN  
struts.velocity.contexts 9{fP.ifdv7  
      List of Velocity context names TW& s c9  
      velocity的context列表 @ xo8"kl  
}bw^p.ci  
-S]ercar  
struts.velocity.manager.classname 16Ka>=G  
      org.apache.struts2.views.velocity.VelocityManager implementation class TU_'1  
      org.apache.struts2.views.velocity.VelocityManager接口名 0cB]:*W  
.?NfV%vv  
struts.velocity.toolboxlocation vT{(7m!Ra  
      The location of the Velocity toolbox h *;c"/7  
      velocity工具盒的位置 m_Hg!Lg  
struts.xslt.nocache :a&M]+!  
      Whether or not XSLT templates should not be cached ]g$ky.;  
      是否XSLT模版应该被缓存 46T(1_Xt~  
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
描述
快速回复

您目前还是游客,请 登录注册
温馨提示:欢迎交流讨论,请勿纯表情、纯引用!
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八