struts2的两个核心配置文件

struts2的两个核心配置文件,即:struts.default.xml和struts.properties

A,位置:都在struts2-core-version.jar文件中

B,作用,struts.default.xml负责管理应用中的action映射。struts.properties负责定义struts2框架的常量属性。

配置struts2常量有3种方式:

一,struts.properties中配置

二,web.xml,filter的初始化参数中配置

三,struts.xml中使用constant节点配置

通过文件加载struts2常量顺序:

一,struts.default.xml

二,struts-plugin.xml

三,struts.xml

四,struts.properties

五,web.xml

posted @ 2015-02-21 14:58  xiluhua  阅读(245)  评论(0编辑  收藏  举报