远程调用 Feign 时报错:
翻译:Unsatisfied dependency expressed through field 'couponFeignService';
通过字段“CouponFeignService”表示的不满意依赖;
解决方法:添加spring-cloud-starter-loadbalancer,排除 Nacos 的 Ribbon
<!-- OpenFeign远程调用 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>