在grails中,遇到类似cannot issue a redirect(..) here. A previours call to redirect(..) has already redirected the response.. 的错误提示信息,原因在于目标redirect语句执行之前请求已经被重定向了
建议解决方法:
1,首先检查controller,查看是否由于语句控制逻辑的错误造成多次重定向
2,查看Filters,很多filters中会有redirect的语句,如果当前请求被拦截,就会造成类似的错误。
本文详细介绍了在Grails框架中遇到cannotissuearedirect(..) here.A previous call to redirect(..) has already redirected the response.错误的原因及解决策略,包括检查控制器逻辑和过滤器中的redirect语句。
1018

被折叠的 条评论
为什么被折叠?



