尝试运行回jsp页面作为响应的spring-boot web应用程序。
控制器代码是:
public class IndexCtrl {
@RequestMapping(value="home")
public String example() {
return "test.jsp";
}
}在pom.xml中添加了tomcat依赖项。
错误6352 -- nio--exec-X o.s.b.w.servlet.support.ErrorPageFilter :由于响应已经提交,无法转发到请求的错误页[]。因此,响应可能有错误的状态代码。如果您的应用程序运行在com.ibm.ws.webcontainer.invokeFlushAfterService应用服务器上,则可以通过将WebSphere设置为false来解决此问题
发布于 2020-04-06 12:53:08
将@RequestMapping(value="home")更改为@RequestMapping("/home"),它在spring-启动版本2.2.5.RELEASE中对我有效
https://stackoverflow.com/questions/57884485
复制相似问题