Spring-boot 升级到2.6.+以后,集成Swagger 3.0 一直报错:org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException。
解决方法:在配置文件application.yml 添加以下配置:
spring: mvc: pathmatch: matching-strategy: ant_path_matcher