pom文件加入了注解
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-hystrix</artifactId>
</dependency>
之后在main方法加入@EnableHystrix注解出现错误提示
具体提示:Class dependency error 'com/netflix/hystrix/exception/HystrixRuntimeException' occurred on aspect definition 'Aspect definition [\service-ribbon\src\main\java\com\example\demo\ServiceRibbonApplication.java:-1] advise type [after] advise
[com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect.methodsAnnotatedWithHystrixCommand(org.aspectj.lang.ProceedingJoinPoint)]' while processing bean 'helloService (10) [com.example.demo.HelloService]'. Check if
builder classpath is complete