Struts2中strutsdefaultxmlstrutsxml 及strutsproperties详解.docx
《Struts2中strutsdefaultxmlstrutsxml 及strutsproperties详解.docx》由会员分享,可在线阅读,更多相关《Struts2中strutsdefaultxmlstrutsxml 及strutsproperties详解.docx(16页珍藏版)》请在冰豆网上搜索。
![Struts2中strutsdefaultxmlstrutsxml 及strutsproperties详解.docx](https://file1.bdocx.com/fileroot1/2022-11/16/68f0a716-06f3-4db9-ba4a-dab9cd4d393b/68f0a716-06f3-4db9-ba4a-dab9cd4d393b1.gif)
Struts2中strutsdefaultxmlstrutsxml及strutsproperties详解
1)struts-default.xml
这个文件是struts2框架默认加载的配置文件。
它定义struts2一些核心的bean和拦截器。
xmlversion="1.0"encoding="UTF-8"?
>
DOCTYPEstrutsPUBLIC
"-//ApacheSoftwareFoundation//DTDStrutsConfiguration2.0//EN"
"http:
//struts.apache.org/dtds/struts-2.0.dtd">
--struts2中工厂bean的定义-->
--类型检测bean的定义-->
--文件上传bean的定义-->
--标签库bean的定义-->
--一些常用视图bean的定义-->
--类型转换bean的定义-->
--Struts2中一些可以静态注入的bean,也就是不需要实例化的-->
--定义Struts2默认包-->
--结果类型的种类-->