一、问题背景:SpringBoot整合Swagger,用于生成 Web API文档
二、错误提示: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
三、解决方法:
(1)springboot版本过高,版本大于2.6.0。与swagger版本产生冲突。降级springboot版本。
(2)在启动类添加注解@EnableWebMvc
四、总结:经过测试,上述两个解决方法,任一选用一个都可以成功启动springboot。