66. 使用 Hystrix 的断路器

Applications 可以使用 Spring Cloud Netflix 项目提供的 Hystrix 断路器,方法是将 starter 包含在项目 pom.xml:spring-cloud-starter-hystrix中。 Hystrix 不依赖于 Netflix Discovery Client。 @EnableHystrix annotation 应该放在 configuration class(通常是主 class)上。然后可以使用@HystrixCommand注释方法以受断路器保护。有关详细信息,请参阅文件