具体报错
Caused by: feign.FeignException$MethodNotAllowed: [405 Method Not Allowed] during [GET] to
[http://GETWAY/ec1/KuCun/CeShiCanShu] [EurekaClientFeignService#CeShiCanShu(String)]:
[{"timestamp":"2021-06-30 07:29:39","status":405,"error":"Method Not
Allowed","trace":"org.springframework.web.HttpRequestMethodNotSupportedException: Request
method 'POST' not supported\r\n\tat org.sp... (5793 bytes)]
具体修改,云服务提供端
方法参数需要加上@RequestParam
public String CeShiCanShu(@RequestParam String shangHuId)
Feign调用方法 也需要加上同样
另外 监控客户端
加上
management.endpoints.web.exposure.include=*
来暴露所有节点,观看更多资料