美文网首页
filterChain

filterChain

作者: 沐晷 | 来源:发表于2020-03-22 13:10 被阅读0次

WebAsyncManagerIntegrationFilter

为请求处理过程中可能发生的异步调用准备安全上下文获取途径

逻辑

        WebAsyncManager asyncManager = WebAsyncUtils.getAsyncManager(request);

        SecurityContextCallableProcessingInterceptor securityProcessingInterceptor = (SecurityContextCallableProcessingInterceptor) asyncManager
                .getCallableInterceptor(CALLABLE_INTERCEPTOR_KEY);
        if (securityProcessingInterceptor == null) {
            asyncManager.registerCallableInterceptor(CALLABLE_INTERCEPTOR_KEY,
                    new SecurityContextCallableProcessingInterceptor());
        }

相关文章

网友评论

      本文标题:filterChain

      本文链接:https://www.haomeiwen.com/subject/ycnmyhtx.html