feign调用报错 Request method ‘POST’ not supported
如果Fegin代理的是get请求,那么必须在feign微服务的请求参数带上@RequestParam 或@RequestBody
@FeignClient(name = "service-payment",path = "/api/pay/wx")
public interface WxPaymentFeignClient {
/**
* 微信支付获取支付地址
* @return
*/
@GetMapping("/getPayUrl")
public String getPayUrl(@RequestParam String body,@RequestParam String outTradeNo,@RequestParam String money);
}