Struts2源代码查看
-----------------siwuxie095
Struts2 源代码查看
1、Struts2 的核心过滤器 StrutsPrepareAndExecuteFilter 实现了 Filter 接口

|
public class StrutsPrepareAndExecuteFilter implements StrutsStatics, Filter |
2、Struts2 的核心过滤器在服务器启动时创建
(1)创建过滤器时会执行 init() 方法
(2)init() 方法主要加载配置文件
1)自己创建的配置文件:struts.xml 和 web.xml
2)Struts2 自带的配置文件,如:struts-default.xml、struts-plugin.xml

其中,[3] 和 [7] 分别加载了 struts.xml 和 web.xml
【made by siwuxie095】
一滴水的无限可能!!!
posted on 2017-08-08 19:54 siwuxie095 阅读(227) 评论(0) 收藏 举报

浙公网安备 33010602011771号