Struts2,Spring

Struts2 operating principle:
1. When the project starts tomcat, tomcat will first load web.xml, and load and parse the corresponding Struts2.xml (Struts2. xml will load and parse the corresponding struts_*.xml according to the <include file="struts_*.xml" /> inside)
2. At this time, the client will send a request to the front-end servlet container of the server, and this request will go through a series of The filter (filter), then filterDispatcher will intercept according to the suffix name, and filterDispatcher will find a specific method corresponding to a specific action according to the configuration information file of Struts.xml.
3. After executing the corresponding business logic, a String is finally returned
. 4. According to the attribute value of the <result/> name configured in <action/> and the returned String, jump to the specified jsp page or FreeMarker's template
spring (Spring introduction )
springside
spring is an IOC framework,
·IOC is
1.injection of control, inversion of control
2.





Guess you like

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