SpringBoot2.x整合Knife4j报错 Failed to start bean 'documentationPluginsBootstrapper';

SpringBoot2.x整合Knife4j编译通过,项目启动时报错

报错信息

Failed to start bean 'documentationPluginsBootstrapper'; nested exception is com.google.common.util.concurrent.ExecutionError:***

解决办法

因为swagger依赖google的guava,而你当前项目的guava版本与之不匹配,将guava升到最新的版本


<dependency>
    <groupId>com.github.xiaoymingroupId>
    <artifactId>knife4j-spring-boot-starterartifactId>
    <version>2.0.2version>
dependency>
<dependency>
    <groupId>com.google.guavagroupId>
    <artifactId>guavaartifactId>
    <version>29.0-jreversion>
dependency>

你可能感兴趣的:(#,Spring,boot)