码迷,mamicode.com
首页 > Windows程序 > 详细

The method's class, com.google.common.collect.FluentIterable, is available from the following locations

时间:2019-11-17 10:49:54      阅读:766      评论:0      收藏:0      [点我收藏+]

标签:att   image   ica   google   mic   script   eth   img   pre   

 

报以下错误,是因为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】就可以了;

技术图片

 

 

 再看就没有报错了。

技术图片

 

The method's class, com.google.common.collect.FluentIterable, is available from the following locations

标签:att   image   ica   google   mic   script   eth   img   pre   

原文地址:https://www.cnblogs.com/javalittleman/p/11848547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!