springboot下载文件抛异常 - Go语言中文社区

springboot下载文件抛异常


一个下载文件的方法,每次文件都能成功下载,但控制台总会报错:

java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class java.lang.Boolean] with preset Content-Type 'application/octet-stream;charset=UTF-8'

在这里插入图片描述

参考文章

Cannot call sendError() after the response has been committed

【SSH问题】java.lang.IllegalStateException: Cannot call sendError() after the response has been committe

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_35566908/article/details/103399926
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-08 11:44:34
  • 阅读 ( 2975 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢