新版的 Springsecurity request.getRequestDispatcher).forward(request, response); 404 问题,已解决

旧版本的 能够直接 转发登录spa

request.getRequestDispatcher).forward(request, response);

新版本的转发会404,缘由 SpringSecurity 过滤器不支持转发code

能够加上如下配置解决blog

security:
  filter:
    dispatcher-types: FORWARD,INCLUDE,REQUEST,ASYNC,ERROR
相关文章
相关标签/搜索