美文网首页
Maven仓库引发的一个错误,正确代码导入idea后启动报错!j

Maven仓库引发的一个错误,正确代码导入idea后启动报错!j

作者: LAMYMAY | 来源:发表于2018-10-10 21:29 被阅读0次

检查m2是否配置了私服或者错误的地址造成依赖有问题

C:\%userprofile%\.m2

我的m2时默认位置,如下

java.lang.NoClassDefFoundError: com/netflix/hystrix/contrib/javanica/aop/aspectj/HystrixCommandAspect

at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_144]

at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_144]

at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_144]

......

Exception in thread "main" java.lang.NoClassDefFoundError: com/netflix/hystrix/contrib/javanica/aop/aspectj/HystrixCommandAspect

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

at java.lang.Class.getDeclaredMethods(Class.java:1975)

at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:613)

at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524)

.....

  .  

相关文章

网友评论

      本文标题:Maven仓库引发的一个错误,正确代码导入idea后启动报错!j

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