zoukankan      html  css  js  c++  java
  • The method's class, com.google.common.collect.FluentIterable, is available from the following locations

    报以下错误,是因为guava版本冲突。

    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    2019-11-13 14:00:06.535 ERROR 18640 --- [restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 
    
    ***************************
    APPLICATION FAILED TO START
    ***************************
    
    Description:
    
    An attempt was made to call a method that does not exist. The attempt was made from the following location:
    
        springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:117)
    
    The following method did not exist:
    
        com.google.common.collect.FluentIterable.append(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:/D:/maven/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar!/com/google/common/collect/FluentIterable.class
    
    It was loaded from the following location:
    
        file:/D:/maven/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar
    
    
    Action:
    
    Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.FluentIterable
    

      

    通过分析,排除16.0.1就可以了。

    右击选择【Exclude】就可以了;

     再看就没有报错了。

  • 相关阅读:
    公司的CMS参数
    Kafka 如何保证消息可靠性
    我来了
    spring解决乱码
    mybatis反向工程
    Unicode控制字符
    功能跟进记录
    创建IDataProvider实例
    腾讯2016研发工程师笔试题36车 6跑道 没有计时器 最少要几次取前三
    .net mvc下拉列表DropDownList控件绑定数据
  • 原文地址:https://www.cnblogs.com/javalittleman/p/11848547.html
Copyright © 2011-2022 走看看