问答详情
源自:3-2 公众号授权登录2
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
为什么会出现这个问题
提问者:qq_宠儿_0
2018-11-18 17:24
个回答
慕移动0214039
2019-03-13 21:32:00
原因如下:
response重定向后没有return,后续程序继续运行,遇到了后续的再次重定向代码报错。
解决方法:
重定向后return。
0