> 文章列表 > Spring报错:Could not find acceptable representation 解决

Spring报错:Could not find acceptable representation 解决

Spring报错:Could not find acceptable representation 解决

        摘要:controller返回值导致抛异常

        做文件下载的时候,发现下载成功,但是后台日志显示Could not find acceptable representation ,意思大概是返回参数的限制,看了一下controller层返回了Result实体,于是改为void返回,问题解决,记录一下!