spring boot 集成swagger出现Failed to start bean ‘documentationPluginsBootstrapper‘空指针

spring boot 集成swagger出现Failed to start bean ‘documentationPluginsBootstrapper‘空指针,第1张

spring boot 集成swagger出现Failed to start bean ‘documentationPluginsBootstrapper‘空指针

在编写完SwaggerConfig配置类结束,添加注解完成后就启动项目,结果就报错了,

错误是:

org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

解决方案:

将你的 spring boot父类工程改为一个比较稳定的版本就可以了!!

上图是已经更改过的,之前用的2.6.0的版本!

 我的问题比较简单所以解决方式也比较简单!!!

我只是想记录自己在学习过程遇到问题和解决方法,不要嫌弃!!!

最后希望大家在学习路上越来越顺利啦!!!!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5612089.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存