我已经为我的应用程序创建了一个拦截器。我使用的是条纹框架。这个拦截器拦截来自浏览器的所有请求。我想让一个bean类绕过这个拦截器。
@Intercepts(LifecycleStage.BindingAndValidation)
public class XssInterceptor implements Interceptor发布于 2015-05-08 23:17:22
您可以在intercept方法中使用以下代码:
@Override
public Resolution intercept(ExecutionContext context) throws Exception {
if (!(context.getActionBean() instanceof BypassedActionBean)) {
// XSS filtering
}
return context.proceed();
}https://stackoverflow.com/questions/30092070
复制相似问题