Struts2 的常量

来源:互联网 发布:出租屋网络配置方案 编辑:程序博客网 时间:2024/06/05 07:46

struts.i18n.encoding

意义:配置默认编码。

使用:<constant name="struts.i18n.encoding" value="UTF-8"></constant>


struts.action.extension

意义:配置Struts2请求后缀,默认为action,如果需要制定多个请求后缀则以英文逗号(,)隔开。

使用:<constant name="struts.action.extension" value="action,do"></constant>



struts.configuration.xml.reload

意义:配置当Struts的配置文件修改后,是否自动重新加载,默认值为false,设置为true时,自动重新加载。

建议:在开发阶段打开,在生产阶段下关闭。

使用:<constant name="struts.configuration.xml.reload" value="true"></constant>


struts.devMode

意义:配置是否打印出详细错误信息,默认值为false,设置为true时,进行打印。

建议:在开发阶段打开,在生产阶段下关闭。

使用:<constant name="struts.devMode" value="true"></constant>


0 0
原创粉丝点击