Struts2 的加载执行流程

通过在web中配置这个 过滤器(也叫核心过滤器)

 <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

而过滤器最终做的事情就是加载 3个xml文件 (源码)

struts-default.xml,struts-plugin.xml,struts.xml

猜你喜欢

转载自www.cnblogs.com/gaoSJ/p/12979798.html
今日推荐