I configured springboot application with
@EnableFeignClients
@SpringCloudApplication
and get error
java.lang.NoClassDefFoundError: com/netflix/hystrix/contrib/javanica/aop/aspectj/HystrixCommandAspect
But if I change annotation to
@EnableFeignClients
@SpringBootApplication
@EnableDiscoveryClient
which means removed annotation @EnableCircuitBreaker
the server start is successful. Why is @EnableFeignClients
in conflict with @EnableCircuitBreaker
? Or how has the error happened?