***************************
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>
加入之后,重新运行项目,项目成功启动了。
网友评论