且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

由于 Hystrix,Spring Boot 2 无法启动?

更新时间:2021-10-03 16:58:54

我在为使用 spring boot 2.0.x 的 spring boot 微服务集成 hystrix 时遇到了类似的问题.而不是

I have faced similar issue while integrating hystrix for my spring boot microservice that uses spring boot 2.0.x. Instead of

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-hystrix</artifactId>
    <version>${spring-hystrix.version}</version>
</dependency>

我已经搬到了

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
    <version>${spring-hystrix.version}</version>
</dependency>

Spring Boot 2.0.x 应用程序在 spring-cloud-starter-netflix-hystrix 依赖项下正常启动,没有这个问题.

Spring boot 2.0.x application starts fine with the spring-cloud-starter-netflix-hystrix dependency without this issue.