springcloud学习:Description:An attempt was made to call a method that does not exist,guava包异常

报错:


***************************
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:/E:/LearningSoftware/MyRepository3.5.3/com/google/guava/guava/15.0/guava-15.0.jar!/com/google/common/collect/FluentIterable.class

It was loaded from the following location:

    file:/E:/LearningSoftware/MyRepository3.5.3/com/google/guava/guava/15.0/guava-15.0.jar


Action:

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


Process finished with exit code 1

 

解决方法:

可能是jar包版本问题,切换一下版本,我这里是15的换成20的就可以了

springcloud学习:Description:An attempt was made to call a method that does not exist,guava包异常_第1张图片

 

 

参考:https://blog.csdn.net/u010886217/article/details/84500546

你可能感兴趣的:(SpringCloud)