springboot集成swagger报错踩坑documentationPluginsBootstrapper
Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException错误
原因,使用springboot集成swagger的时候springboot版本高于swagger版本
先贴一个报错的图吧
这个是因为多写了个swagger配置
这个就是springboot与swagger版本不匹配
解决
springboot的版本高于2.6.0那就用swagger3.0.0
![在这里插入图片描述](https://img-blog.csdnimg.cn/30a4214581644d7a91e53495ef878c3e.pn
如果想使用swagger2.9.2的就在pom文件里把springboot的版本手动改成2.5.6