我是靠谱客的博主 粗暴月亮,这篇文章主要介绍【Spring Cloud】Finchley版本hystrix的@EnableHystrixDashboard注解无法使用解决方法,现在分享给大家,希望可以做个参考。

查阅了相关资料,由于是spring boot 2.0.X版本问题,所以使用

复制代码
1
2
3
4
5
6
7
8
9
<dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-javanica</artifactId> <version>RELEASE</version> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId> </dependency>

代替

复制代码
1
2
3
4
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency>

@EnableHystrixDashboard注解即可使用

复制代码
1
2
3
4
5
6
7
8
9
@SpringBootApplication @EnableHystrixDashboard public class HystrixActuatorServerApplication{ public static void main( String[] args ) { SpringApplication.run(HystrixActuatorServerApplication.class,args); } }

最后

以上就是粗暴月亮最近收集整理的关于【Spring Cloud】Finchley版本hystrix的@EnableHystrixDashboard注解无法使用解决方法的全部内容,更多相关【Spring内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(35)

评论列表共有 0 条评论

立即
投稿
返回
顶部