使用Netflix hystrix实现断路器中导入依赖失败

问题描述:

Spring Cloud 中的断路器仪表盘功能套件导入依赖失败的问题
pom.xml中的代码:

		<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
        </dependency>

显示的错误:
使用Netflix hystrix实现断路器中导入依赖失败


原因分析:

这里应该是需要加入version


解决方案:

加入version标签,更改后pom.xml的代码如下

		<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
            <version>2.2.7.RELEASE</version>
        </dependency>
上一篇:试水Spring Cloud Hystrix


下一篇:Hystrix 停止开发。。。Spring Cloud 何去何从?