---
title: "struts 架构备注"
author: "jackleechina"
date: "2013-05-28T23:57:46Z"
tags: []
categories: ["研发管理"]
slug: "struts"
draft: false
lastmod: "2013-05-28T23:57:46Z"
id: 1879143
url: "https://jackleechina.iteye.com/blog/1879143"
---

1) struts.xml 放在src目录下面,src是java类源文件的文件夹。编译后，在WEB-INF\classes下面会生成一份struts.xml

2) web.xml 放置web-inf目录下，可以再web.xml目录下定义applicationContext.xml的位置

```java
<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>
			classpath*:/applicationContext*.xml
		</param-value>
	</context-param>
```

3)struts.xml负责url入口，java方法,返回页面的映射。(src---->web-inf\classes)
  applicationContext.xml 实例化bean