Spring Boot @GetMapping返回void

原创
2021/05/27 00:26
阅读数 161

Spring Boot @GetMapping方法返回void时,必须带HttpServletResponse参数,否则ErrorPageFilter会报错。

org.springframework.boot.web.servlet.support.ErrorPageFilter - Cannot forward to error page for request [/**] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部