nested exception is java.lang.IllegalStateException: Cannot forward after response has been committed

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Cannot forward after response has been committed

又一次跳转,代码控制跳转,跳转了两次,加个return;

web.xml错误信息强制跳转页面,抛出异常

<error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/error/error.html</location>
</error-page>

原文地址:https://www.cnblogs.com/sunxucool/p/3304891.html