struts schema remarks

1) struts.xml is placed under the src directory, src is the folder of java class source files. After compiling, a struts.xml will be generated under WEB-INF\classes

2) web.xml is placed in the web-inf directory, and the location of applicationContext.xml can be defined in the web.xml directory
<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>
			classpath*:/applicationContext*.xml
		</param-value>
	</context-param>

3) struts.xml is responsible for the url entry, java method, and the mapping of the returned page. (src---->web-inf\classes)
  applicationContext.xml instantiate beans

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327018257&siteId=291194637