struts2默认拦截器之servletConfig

在struts2的struts-default.xml中定义了一个name为servletConfig拦截器,实现类是org.apache.struts2.interceptor.ServletConfigInterceptor,该拦截器功能比较简单,作用是对实现了ServletRequestAware,ServletResponseAware,ParameterAware,ApplicationAware,SessionAware,RequestAware,PrincipalAware,ServletContextAware接口的action类注入对应属性值。

版权所有,转载请标明出处:http://blogwarning.iteye.com/blog/1336608

猜你喜欢

转载自blogwarning.iteye.com/blog/1336608