出现:org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
问题原因:
springboot 升级到 2.6.0之后,swagger版本和springboot出现了不兼容情况。
解决方案:
在 application.properties 配置文件添加配置:
spring.mvc.pathmatch.matching-strategy=ant_path_matcher