美文网首页Spring Cloud
解决feign使用hystrix报错:Caused by: ja

解决feign使用hystrix报错:Caused by: ja

作者: 就怕是个demo | 来源:发表于2017-11-23 15:09 被阅读106次

解决feign使用hystrix报错:

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

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

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-hystrix</artifactId>
</dependency>

相关文章

网友评论

    本文标题:解决feign使用hystrix报错:Caused by: ja

    本文链接:https://www.haomeiwen.com/subject/anuzvxtx.html