一、概念
MVC经典设计模式的一种应用: 它通过采用JavaServlet/JSP技术,实现了基于JavaEE Web应用的Model-View-Controller(MVC)设计模式的应用框架
二、实现原理
IOC容器管理Struts2的Action
三、整合实现
1、配置struts2 web.xml中
2、配置strut2的action applicationContext.xml
3、配置 struts.xml
4、index.jsp
注意: person-save和struts.xml中的action名称对应
四、根本原理
1、IOC容器不归servlet管理
2、servlet启动时候,通过ContextLoaderListener对IOC容器进行创建
3、struts框架通过mvc机制绑定动作