struts2中配置文件的加载顺序

来源:互联网 发布:人体透视镜软件下载 编辑:程序博客网 时间:2024/05/21 07:54

default.properties

struts-default.xml

struts-plugin.xml

struts.xml(我们自己配置)

struts.properties(我们自己配置)

web.xml(同样自己配置)



xml比properties的优势在于能体现层级关系,注意加载文件过程中遇到相同的name后面的会把前面的文件定义的内容覆盖

0 0