SpringCloud中hystrix熔断报错
There was an unexpected error (type=Internal Server Error, status=500).
在网上看了很多的博客,都没有找到对应的方法。后面检查了一下Common的依赖发现没有加入hystrix的依赖。
<!-- 加入熔断hystrix -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
<version>2.1.6.RELEASE</version>
</dependency>
加入Common的依赖就好了.

解决SpringCloud Hystrix熔断错误:缺失依赖的教训
本文讲述了在使用SpringCloud中遇到500 InternalServerError,通过排查发现缺少spring-cloud-starter-netflix-hystrix依赖,加入后问题解决。关键步骤在于确认Common依赖并加入Hystrix组件。
345

被折叠的 条评论
为什么被折叠?



