在 SpringCloud 整合熔断器(Hystrix)时,已经在 Eureka Discovery Client 中加了依赖:
org.springframework.cloud spring-cloud-starter-netflix-hystrix出现找不到@HystrixCommand注解,
经发现@HystrixCommand注解是属于 com.netflix.hystrix.contrib.javanica.annotation 包提供,故需要添加以下依赖:
com.netflix.hystrix hystrix-javanica刷新maven即可
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================