旧版本的 能够直接 转发登录spa
request.getRequestDispatcher).forward(request, response);
新版本的转发会404,缘由 SpringSecurity 过滤器不支持转发code
能够加上如下配置解决blog
security: filter: dispatcher-types: FORWARD,INCLUDE,REQUEST,ASYNC,ERROR