1)报错信息
java.lang.IllegalStateException: Annotation @EnableCircuitBreaker found, but there are no implementations. Did you forget to include a starter?
2)原因
因为我使用了复合注解@SpringCloudApplication
pom.xml中却没有导入Hystrix的依赖
3)解决办法
加入依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
4)启动成功