以下代码:
.fullcircleparent{
position: relative;
width: auto;
height: 400px;
top: -157px;}
REST端点:
updateUser: function(id, user){
var updateUrl = "/Users/" + id + "/"
var promise = $http({method:'PATCH', url: updateUrl, data: user, headers: {'segment' : segment, 'Accept': 'application/json', 'Content-Type': 'application/json' }})
.error(function(data, status){
return {"status":false};
});
return promise;
},
我收到以下错误:错误补丁用户feign.FeignException:状态415读取UsersApi#patchUser(String,HashMap);服务器拒绝了此请求,因为请求实体所采用的方法所请求的资源不支持该格式。
有什么想法吗?