SpringBoot集成 Swagger 后,启动报 org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException


 

错误图示:

 

原因:是因为 Swagger 和 SpringBoot 的版本兼容

 解决办法:修改 SpringBoot  版本即可:

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

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 Swagger2 Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException报错 org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper';问题解决办法 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplic SpringBoot项目集成Swagger启动报错: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is linux发布springboot org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'异常解决 Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. Unable to start web server; nested exception is org.springframework.context.ApplicationContextException spring Boot 出现:org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. SSM框架报HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException错
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM