Feign Request method 'POST' not supported

Feign远程调用出错,报错如下:

Caused by: feign.FeignException: status 405 reading IMubanClient#initConf(Integer); content:
{"code":405,"success":false,"data":{},"msg":"Request method 'POST' not supported"}

1.首先保障Client接口和控制层接口的请求方式一致

2.如果有参数,必须指定@RequestParam的vue,如下图

发布了22 篇原创文章 · 获赞 21 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/corleone_4ever/article/details/96616538