开发者社区 > 云原生 > 正文

帮看下AHAS这个问题么,ahas重写了guava相关类,导致我其他依赖guava的jar,却依赖了

帮看下AHAS这个问题么,ahas重写了guava相关类,导致我其他依赖guava的jar,却依赖了ahas客户端里面的guava实现 导致报错 这个怎么解决呢? An attempt was made to call a method that does not exist. The attempt was made from the following location:

springfox.documentation.schema.DefaultModelDependencyProvider.dependentModels(DefaultModelDependencyProvider.java:79)

The following method did not exist:

com.google.common.collect.FluentIterable.concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;

The method's class, com.google.common.collect.FluentIterable, is available from the following locations:

jar:file:/Users/zhonghui/mavenRepo/com/alibaba/csp/ahas-sentinel-client/1.10.10/ahas-sentinel-client-1.10.10.jar!/com/google/common/collect/FluentIterable.class
jar:file:/Users/zhonghui/mavenRepo/com/google/guava/guava/23.0/guava-23.0.jar!/com/google/common/collect/FluentIterable.class

It was loaded from the following location:

file:/Users/zhonghui/mavenRepo/com/alibaba/csp/ahas-sentinel-client/1.10.10/ahas-sentinel-client-1.10.10.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.FluentIterable

展开
收起
真的很搞笑 2023-04-21 23:07:23 166 0
1 条回答
写回答
取消 提交回答
  • 可以先使用 1.10.9 版本哈,此回答整理自钉群“AHAS用户沟通群”

    2023-04-27 08:23:43
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关产品

  • 应用高可用服务
  • 热门讨论

    热门文章

    相关电子书

    更多
    筑牢高可用基石,AHAS 赋能溪鸟安全生产探索与实践 立即下载
    阿里云容器 AHAS Sentinel 网关流控揭秘 立即下载
    低代码开发师(初级)实战教程 立即下载