一. Bug介绍
在使用SpringCloud的熔断器Hystrix时,添加注解@HystrixCommand时,无法找到该注解。
二. 问题解决
由于,注解@HystrixCommand是属于com.netflix.hystrix.contrib.javanica.annotation包的,因此需要添加以下的依赖:
复制代码
1
2
3
4
5<dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-javanica</artifactId> </dependency>
至此,问题解决!!!
最后
以上就是甜蜜衬衫最近收集整理的关于【JavaDebug(九)】之SpringCloud找不到注解@HystrixCommand的全部内容,更多相关【JavaDebug(九)】之SpringCloud找不到注解@HystrixCommand内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复