使用spring我编写了一个方法,在调用GET时应该返回一个json对象数组。我检查了PostMan一切正常,但是当我尝试使用curl进行GET时,我得到了
{"timestamp":1503570488519,"status":415,"error":"Unsupported Media Type","exception":"org.springframework.web.HttpMediaTypeNotSupportedException","message":"Unsupported Media Type","path":"/audpro/report"}
这是邮递员localhost:8080/audpro/report
我的卷曲命令
curl -X GET "http://localhost:8080/audpro/report" -H "accept:application/json"
为什么?