使用springCloud熔断器添加依赖后加入@EnableHystrix注解报错

eternity_zzy 2017-11-17 11:52:18
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
...全文
537 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧