struts2中constant的一些配置
struts2的访问
struts2加载常量的顺序
struts-default.xml
struts-plugin.xml
struts.xml
struts.properties
web.xml
后面的会覆盖掉前面的常量,最好在struts.xml中定义
?
怎么由.action改为.do
<constant name="struts.action.extension" value="do"/>
do或action
<constant name="struts.action.extension" value="do,action"/>
truts2用来指定默认编码的
<constant name="struts.i18n.encoding" value="UTF-8"/>
?
改变常量后不许重启服务器
<constant name="struts.configuration.xml.reload" value="true"/>
系统默认为false?
便于排错,打印出更详细的错误信息
<constant name="struts.devMode" value="true">
?
设置浏览器是否缓存静态内容,默认为TRUE? 开发阶段最好关闭
<constant name="struts.server.static.browserCache" valur="false"/>
?
默认的视图主题
<constant name="struts.ui.theme" value="simple"/>
?
与spring集成时,指定spring负责action对象的创建
<struts name="struts.objectFactory" value="spring"/>
?
上传文件大小限制
<struts name="struts.multipart.maxSize" value="10241024"/>
?
?
?