| 目录 |
说明 |
| src/main/resources/ |
一些只能放在根目录的properties配置文件,如log4j.properties |
| src/main/resources/config |
properties配置文件主目录,如jdbc.properties, hibernate.properties |
| src/main/resources/spring |
Spring的ApplicationContext配置文件,注意各模块的service-context文件分开命名,如serviceContext-shop.xml, serviceContext-admin.xml |
| src/main/webapp/WEB-INF/struts-config.xml |
Struts的总配置文件 |
| src/main/webapp/WEB-INF/action-servlet.xml |
Spring与Struts集成的配置文件 |
| src/main/webapp/WEB-INF/modules/struts-config-*.xml |
以模块划分的struts配置文件,需要在WEB-INF/web.xml中声明。公共的部分在/WEB-INF/struts-config.xml中定义。 |
| src/main/webapp/WEB-INF/modules/spring-config-*.xml |
以模块划分的 spring 对应 struts的配置文件, 需要在WEB-INF/action-servlet.xml 中声明。 |
| src/main/webapp/WEB-INF/modules/validation-*.xml |
以模块划分的commons-validation 配置文件,需要在WEB-INF/struts-config.xml 中声明。 |