是否可以在控制器之间多次重定向响应?如果我尝试在控制器内重定向响应,然后在过滤器的 after 方法中进行重定向,我得到了这个异常:
ERROR errors.GrailsExceptionResolver - CannotRedirectException occurred when processing request: [GET] /ac/customer/index
Cannot issue a redirect(..) here. A previous call to redirect(..) has already redirected the response.. Stacktrace follows:
Message: Cannot issue a redirect(..) here. A previous call to redirect(..) has already redirected the response.
有没有其他方法可以解决这个问题?