解决feign使用hystrix报错:Caused by: java.lang.ClassNotFoundException: com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect

解决feign使用hystrix报错:

  Caused by: java.lang.ClassNotFoundException: com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect

版本升级到Dalston.SR4之后feign使用hystrix时启动报如上错误
解决办法:引入hystrix依赖包,不然找不到hystrix-contrib包


    org.springframework.cloud
    spring-cloud-starter-hystrix

你可能感兴趣的:(解决feign使用hystrix报错:Caused by: java.lang.ClassNotFoundException: com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect)