guava-15.0.jar!/com/Google/common/collect/Fluenticatable . class

***************************
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:/perfadditionaccumulate-latest.jar!/BOOT-INF/lib/guava-15.0.jar!/com/google/common/collect/FluentIterable.class
 
It was loaded from the following location:
 
    jar:file:/perfadditionaccumulate-latest.jar!/BOOT-INF/lib/guava-15.0.jar!/

对于本文的报错,指向了guava-15.0有问题,没有包含该方法,我们尝试着用最新版本的guava-20.0。在idea的pom文件加入如下内容:

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>20.0</version>
        </dependency>

加入之后,重新运行项目,项目成功启动了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。