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

Posted javalittleman

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The method's class, com.google.common.collect.FluentIterable, is available from the following lo相关的知识,希望对你有一定的参考价值。

 

报以下错误,是因为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 lo的主要内容,如果未能解决你的问题,请参考以下文章

[翻译]The Neophyte's Guide to Scala Part 12: Type Classes

LINQ to Entities does not recognize the method 'System.DateTime ToDateTime(System.String)' m

转can't find referenced method 'android.app.RemoteInput[] getRemoteInputs()' in class a(代

The method load(Class, Serializable) in the type HibernateTemplate is not applicable for the argumen

Authentication method 'caching_sha2_password' not supported by any of the available plugins.

EventBusException:Subscriber class and its super classes have no public methods with the @Subscribe