码迷,mamicode.com
首页 > 其他好文 > 详细

Cannot call sendRedirect() after the response has been committ

时间:2017-12-26 14:26:56      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:ret   body   重定向   response   div   http   .com   log   commit   

技术分享图片

 

报错原因:重定向不能复用!!!

网上说的加return流程能正常走下去,但是后台还是会抛出该异常

解决方案,修改流程(例):

技术分享图片

 

Cannot call sendRedirect() after the response has been committ

标签:ret   body   重定向   response   div   http   .com   log   commit   

原文地址:https://www.cnblogs.com/BoyQing/p/8117021.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!