在springboot项目中使用swagger2出现的报错信息如下:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2022-01-27 16:49:51.422 ERROR 2528 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
是因为springboot版本太高,把springboot版本退回到2.5.6即可运行。访问swagger-ui.html即可进入