feign远程调用报405

feign.FeignException: status 405 reading....

传参错误导致

@GetMapping("/verify")
AuthResponse verify(@RequestBody Account account);

接受参数用了requestBody,但是上面却用了getmapping ,此时是接收不到的,改成PostMapping后,问题解决
posted @ 2020-09-04 12:35  红嘴鲤鱼  阅读(1989)  评论(0编辑  收藏  举报