部分pom
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<!--在引用时请在maven中央仓库搜索最新版本号-->
<version>2.0.7</version>
</dependency>
把spring-boot-starter-parent的版本由2.5.8升级到2.6.2报标题的错误,具体原因未知。
解决方案1:回退版本到2.5.8
解决方案2:配置
spring.mvc.pathmatch.matching-strategy=ant_path_matcher