美文网首页
guava-15.0.jar!/com/Google/commo

guava-15.0.jar!/com/Google/commo

作者: 草叶oo0 | 来源:发表于2020-02-22 11:32 被阅读0次
***************************
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>

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

相关文章

网友评论

      本文标题:guava-15.0.jar!/com/Google/commo

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