springboot 整合swagger2 启动控制台报错 Failed to start bean 'documentationPluginsBootstrapper',空指针

springboot版本和swagger版本不适配,换个低版本springboot尝试.

  <parent>
    <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6.RELEASE</version> <!-- 之前是高版本 -->
<relativePath/> <!-- lookup parent from repository -->
</parent>

    <!-- swagger -->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
 

 

上一篇:最新接口api插件 Swagger3 更新配置详解


下一篇:SpringBoot集成Swagger3