旧版本的 可以直接 转发登陆
request.getRequestDispatcher).forward(request, response);
新版本的转发会404,原因 SpringSecurity 过滤器不支持转发
可以加上以下配置解决
security:
filter:
dispatcher-types: FORWARD,INCLUDE,REQUEST,ASYNC,ERROR
旧版本的 可以直接 转发登陆
request.getRequestDispatcher).forward(request, response);
新版本的转发会404,原因 SpringSecurity 过滤器不支持转发
可以加上以下配置解决
security:
filter:
dispatcher-types: FORWARD,INCLUDE,REQUEST,ASYNC,ERROR
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。