Struts配置文件加载顺序

1.default.properties文件
作用:定义了struts2框架中所有常量
位置:org/apache/struts2/default/default.properties

2.struts-default.xml
作用:配置了bean,interceptor,result等。
位置:在stuts的core核心jar包。

struts-plugin.xml
      它是struts2框架中所使用的插件的配置文件。
      struts2所使用的配置文件。

3.自定义的struts.properties
就是可以自定义常量。

4.web.xml

在开发中,后加载文件中的配置会将先加载文件中的配置覆盖。

你可能感兴趣的:(Struts配置文件加载顺序)