default.properties
struts-default.xml
struts-plugin.xml
struts.xml(我们自己配置)
struts.properties(我们自己配置)
web.xml(同样自己配置)
xml比properties的优势在于能体现层级关系,注意加载文件过程中遇到相同的name后面的会把前面的文件定义的内容覆盖
本文探讨了 Struts 框架中关键配置文件的作用与区别,包括 default.properties、struts-default.xml、struts-plugin.xml 和自定义的 struts.xml、struts.properties 以及 web.xml。特别强调了 XML 文件相较于 properties 文件的优势在于能更好地表达层级关系。
default.properties
struts-default.xml
struts-plugin.xml
struts.xml(我们自己配置)
struts.properties(我们自己配置)
web.xml(同样自己配置)
xml比properties的优势在于能体现层级关系,注意加载文件过程中遇到相同的name后面的会把前面的文件定义的内容覆盖

被折叠的 条评论
为什么被折叠?