Struts2拦截器

所有拦截器声明

<interceptorname="alias"class="com.opensymphony.xwork2.interceptor.AliasInterceptor"/>

<interceptorname="autowiring"class="com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor"/>

<interceptorname="chain"class="com.opensymphony.xwork2.interceptor.ChainingInterceptor"/>

<interceptorname="conversionError"class="org.apache.struts2.interceptor.StrutsConversionErrorInterceptor"/>

<interceptorname="cookie"class="org.apache.struts2.interceptor.CookieInterceptor"/>

<interceptorname="clearSession"class="org.apache.struts2.interceptor.ClearSessionInterceptor"/>

<interceptorname="createSession"class="org.apache.struts2.interceptor.CreateSessionInterceptor"/>

<interceptorname="debugging"class="org.apache.struts2.interceptor.debugging.DebuggingInterceptor"/>

<interceptorname="execAndWait"class="org.apache.struts2.interceptor.ExecuteAndWaitInterceptor"/>

<interceptorname="exception"class="com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor"/>

<interceptorname="fileUpload"class="org.apache.struts2.interceptor.FileUploadInterceptor"/>

<interceptorname="i18n"class="com.opensymphony.xwork2.interceptor.I18nInterceptor"/>

<interceptorname="logger"class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>

<interceptorname="modelDriven"class="com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor"/>

<interceptorname="scopedModelDriven"class="com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor"/>

<interceptorname="params"class="com.opensymphony.xwork2.interceptor.ParametersInterceptor"/>

<interceptorname="actionMappingParams"class="org.apache.struts2.interceptor.ActionMappingParametersInteceptor"/>

<interceptorname="prepare"class="com.opensymphony.xwork2.interceptor.PrepareInterceptor"/>

<interceptorname="staticParams"class="com.opensymphony.xwork2.interceptor.StaticParametersInterceptor"/>

<interceptorname="scope"class="org.apache.struts2.interceptor.ScopeInterceptor"/>

<interceptorname="servletConfig"class="org.apache.struts2.interceptor.ServletConfigInterceptor"/>

<interceptorname="timer"class="com.opensymphony.xwork2.interceptor.TimerInterceptor"/>

<interceptorname="token"class="org.apache.struts2.interceptor.TokenInterceptor"/>

<interceptorname="tokenSession"class="org.apache.struts2.interceptor.TokenSessionStoreInterceptor"/>

<interceptorname="validation"class="org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor"/>

<interceptorname="workflow"class="com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor"/>

<interceptorname="store"class="org.apache.struts2.interceptor.MessageStoreInterceptor"/>

<interceptorname="checkbox"class="org.apache.struts2.interceptor.CheckboxInterceptor"/>

<interceptorname="profiling"class="org.apache.struts2.interceptor.ProfilingActivationInterceptor"/>

<interceptorname="roles"class="org.apache.struts2.interceptor.RolesInterceptor"/>

<interceptorname="annotationWorkflow"class="com.opensymphony.xwork2.interceptor.annotations.AnnotationWorkflowInterceptor"/>

<interceptorname="multiselect"class="org.apache.struts2.interceptor.MultiselectInterceptor"/>


默认拦截器栈

<interceptor-stackname="defaultStack">

<interceptor-refname="exception"/>

<interceptor-refname="alias"/>

<interceptor-refname="servletConfig"/>

<interceptor-refname="i18n"/>

<interceptor-refname="prepare"/>

<interceptor-refname="chain"/>

<interceptor-refname="scopedModelDriven"/>

<interceptor-refname="modelDriven"/>

<interceptor-refname="fileUpload"/>

<interceptor-refname="checkbox"/>

<interceptor-refname="multiselect"/>

<interceptor-refname="staticParams"/>

<interceptor-refname="actionMappingParams"/>

<interceptor-refname="params">

<param name="excludeParams">dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,parameters\...*</param>

</interceptor-ref>

<interceptor-refname="conversionError"/>

<interceptor-refname="validation">

<param name="excludeMethods">input,back,cancel,browse</param>

</interceptor-ref>

<interceptor-refname="workflow">

<param name="excludeMethods">input,back,cancel,browse</param>

</interceptor-ref>

<interceptor-refname="debugging"/>

</interceptor-stack>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值