Struts2 配置檔案(八)
1.struts2配置檔案的分類
2.配置檔案的作用詳情
1.內部配置檔案:有struts2自動載入,對其自身進行配置(struts-default.xml,struts-plugin.xml 等)
2.開發人員使用的配置檔案:有開發人員使用,用於對web應用進行配置。比如 web.xml,struts.xml struts.propeties.
2.配置檔案的作用詳情
配置檔案 | 是否可選 | 位置(相對webapp) | 說明 |
web.xml | 否 | /WEB-INF/ | web部署的描述檔案,包括所有必須的框架元件 |
struts.xml | 是 | /WEB-INF/ | Struts2框架的主要配置檔案,包含action的對映,result對映和攔截器配置等 |
struts.properties | 是 | /WEB-INF/classes | Struts2框架的屬性配置檔案 |
struts-default.xml | 是 | /WEB-INF/lib/struts2-core-x.x.x.jar | Struts2框架提供的預設配置 |
struts-plugin.xml | 是 | /WEB-INF/lib/struts-xxx-plugin.jar | Struts2框架的外掛的配置檔案 |
相關文章
- struts2中的6大配置檔案
- Struts2的properties配置檔案詳解
- struts2:多模組多配置檔案開發
- 天龍八部架設IP配置檔案
- PostgreSQL-訪問策略配置檔案pg_hba.conf檔案(八)SQL
- struts2 檔案上傳為空
- Struts2的檔案上傳下載
- tomcat啟動或,struts2需要載入哪些配置檔案,載入順序Tomcat
- Git配置配置檔案Git
- struts2的工作原理與檔案結構
- struts2檔案下載及 inputStream的理解
- Struts2配置後ClassNotFoundExceptionException
- struts2檔案上傳型別限制 之 zip和rar檔案型別型別
- 菜鳥學SSH(五)——Struts2上傳檔案
- Struts2教程7:上傳任意多個檔案
- 8.4.4 配置檔案
- vim配置檔案
- Maven配置檔案Maven
- 配置檔案vimrc
- MySQL配置檔案MySql
- shell配置檔案
- mysql 配置檔案MySql
- WCF配置檔案
- bash配置檔案
- pch檔案配置
- nginx配置檔案Nginx
- mongodb配置檔案常用配置項MongoDB
- apache 配置檔案的配置(轉)Apache
- struts2的struts.xml檔案的元素結構XML
- Struts2 XML配置詳解XML
- 熱更新配置檔案
- 理解 Typescript 配置檔案TypeScript
- Git修改配置檔案Git
- 【Mongo】mongo配置檔案Go
- Nginx配置檔案解析Nginx
- redis配置檔案解析Redis
- EBS--配置檔案
- VSFTP配置檔案FTP