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

旧版本的 可以直接 转发登陆

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

新版本的转发会404,原因 SpringSecurity 过滤器不支持转发

可以加上以下配置解决

security:
  filter:
    dispatcher-types: FORWARD,INCLUDE,REQUEST,ASYNC,ERROR

猜你喜欢

转载自www.cnblogs.com/sweetchildomine/p/9941918.html
今日推荐