@FeignClient指定了GET方法,但依然会发送POST请求。

feign.FeignException:status405reading UserFeignClient#get0(User); content:{"timestamp":1482676142940,"status":405,"error":"Method Not Allowed","exception":"org.springframework.web.HttpRequestMethodNotSupportedException","message":"Request method 'POST' not supported","path":"/get"}

原地址原地址

加@RequestParam()注解解决

@FeignClient指定了GET方法,但依然会发送POST请求。_第1张图片

你可能感兴趣的:(@FeignClient指定了GET方法,但依然会发送POST请求。)