| | |
| | | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { |
| | | |
| | | if (!(handler instanceof HandlerMethod)) { |
| | | return AsyncHandlerInterceptor.super.preHandle(request, response, handler); |
| | | return true; // proceed with the next interceptor |
| | | } |
| | | |
| | | // if need login |
| | |
| | | request.setAttribute(LoginService.LOGIN_IDENTITY_KEY, loginUser); |
| | | } |
| | | |
| | | return AsyncHandlerInterceptor.super.preHandle(request, response, handler); |
| | | return true; // proceed with the next interceptor |
| | | } |
| | | |
| | | } |