Feign - Hystrix - feign.RetryableException:连接被拒绝:没有更多信息执行 GET

Feign - Hystrix - feign.RetryableException: Connection refused: no further information executing GET

我有

@FeignClient(name="verbservice", fallback = VerbClientFallback.class)
public interface VerbClient {
    @GetMapping
    public String getVerbWord();
}

@Component
public class VerbClientFallback implements VerbClient {
    @Override
    public String getVerbWord() {
        return "fallback";
    }
}

应用程序

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrix
public class SentenceAppApplication {
...}

控制器

@Autowired
private VerbClient verbClient;
....
return verbClient.getVerbWord() + ....other;

application.properties

feign.hystrix.enabled=true

版本

Spring boot 2.5.4

<properties>
    <java.version>11</java.version>
    <spring-cloud.version>2020.0.3</spring-cloud.version>
</properties>

目标:停止动词服务并查看是否调用回退。

问题:

nested exception is feign.RetryableException: Connection refused: no further information executing GET http://verbservice] with root cause

我尝试了此 link 中的步骤...但它不起作用

看来属性

feign.hystrix.enabled=true

改为

feign.circuitbreaker.enabled=true