SpringBoot解决Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.N

Posted Harris-H

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SpringBoot解决Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.N相关的知识,希望对你有一定的参考价值。

SpringBoot解决Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException:

原因

我的原因是在导入Swggaer时,因为swagger要求的springBoot版本与当前springboot版本不符合,当前springboot的版本是2.6.2,版本太高,缺失相应的依赖。

解决方法

将springboot 的版本回退到2.5.3。

  <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.3</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

以上是关于SpringBoot解决Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.N的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot 整合Mybatis报错解决(Failed to determine a suitable driver class)

centos下git报错Failed to connect to repository : Command "git ls-remote -h HEAD" returned sta

centos下git报错Failed to connect to repository : Command "git ls-remote -h HEAD" returned sta

centos下git报错Failed to connect to repository : Command "git ls-remote -h HEAD" returned sta

SpringBoot+WebSocket问题:Failed to register @ServerEndpoint class

Springboot启动报错:Failed to determine a suitable driver class