org.springframework.web.HttpMediaTypeNotAcceptableException,由点断解决方案导致的异常

错误发生的地方

@DeleteMapping("{fileName:.+}")
    public SerializeObject delete(@RequestHeader String accessToken, @PathVariable String fileName) { 

请求地址

127.0.0.1:8100/storage/201804271613223700.PNG

异常信息如下

{
    "timestamp": 1524818476687,
    "status": 406,
    "error": "Not Acceptable",
    "exception": "org.springframework.web.HttpMediaTypeNotAcceptableException",
    "message": "Could not find acceptable representation",
    "path": "/storage/201804271613223700.PNG"
}

解决方法

 

暂时还没找到。。。。。。
暂时还没找到。。。。。。
暂时还没找到。。。。。。

  

posted on 2018-04-27 16:47  小小程序员的梦想  阅读(1061)  评论(0编辑  收藏  举报

导航