问题:使用SpringBoot集成Swagger后,运行报错:Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
不管用什么版本的Swagger依赖都报错
解决方法:将SpringBoot的版本改为2.5.7后重新运行即可!
这时项目运行成功,打开浏览器输入网址即可进入Swagger文档
注意:
依赖3.0以下的访问:http://localhost:8080/swagger-ui.html
3.0以上的访问:http://localhost:8080/swagger-ui/html.html