com.google.common.collect.FluentIterable之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:/F:/local_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:/F:/local_repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar

guava版本冲突

解决方案:
代码程序里用到的easypoi
在这里插入图片描述
补充guava依赖

<dependency>
    <groupId>cn.afterturn</groupId>
    <artifactId>easypoi-base</artifactId>
    <version>4.1.3</version>
    <exclusions>
        <exclusion>
            <artifactId>guava</artifactId>
            <groupId>com.google.guava</groupId>
        </exclusion>
    </exclusions>
</dependency>

在这里插入图片描述
完成!


版权声明:本文为weixin_44316527原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。