Struts 2ブロッキング属性excludeMethods、includeMethodsの構成が無効な理由
550 ワード
Struts 2ブロッキング属性excludeMethods、includeMethodsの構成が無効な理由:
インターセプタがInterceptorインタフェースを介して生成された場合、属性excludeMethods、includeMethodsの構成は無効です.ブロッカーは、MethodFilterInterceptorクラスを継承することで、属性excludeMethods、includeMethodsの構成が有効になります.
インターセプタがInterceptorインタフェースを介して生成された場合、属性excludeMethods、includeMethodsの構成は無効です.ブロッカーは、MethodFilterInterceptorクラスを継承することで、属性excludeMethods、includeMethodsの構成が有効になります.
public class UserLoginInterceptor extends MethodFilterInterceptor implements Interceptor{
private static final long serialVersionUID = 1L;
@Override
protected String doIntercept(ActionInvocation invocation) throws Exception {
return "";
}
}