put 请求总是报错
来源:9-9 Spring消息编程模型01-编写生产者

hthonor
2020-10-19
大目老师,我的idea restfultookit 插件用不了,就用来自带的 HTTP Client
我发送put请求 ,出现问题,不知道错误在哪里?帮我看看可以吗
PUT http://localhost:8020/admin/shares/audit/1
Conten-Type: application/json
Accept: */*
Cache-Control: no-cache
{"AuditStatusEnum":"PASS","reason":"这是一个优秀的资源"}
###
报错:
{"timestamp":"2020-10-19T08:04:18.491+0000","status":415,"error":"Unsupported Media Type","message":"Content type '*/*;charset=UTF-8' not supported","path":"/admin/shares/audit/1"}
写回答
1回答
-
大目
2020-10-19
controller代码贴下
032020-10-19
相似问题