问题:Swagger版本是2.9.2、springboot 版本是2.6.1
发现是springboot版本太高,缺少swagger运行所需要的环境
原因: 这是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
方案1: 修改application.yaml spring: mvc: pathmatch: matching-strategy: ANT_PATH_MATCHER
方案2:把springboot回退到2.5.6正常启动