报错原因是swagger和springboot的版本不匹配了
这是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
解决方法
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
添加依赖
com.google.guava guava 28.2-android
看的这位博主的文章

报错原因是swagger和springboot的版本不匹配了
这是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
解决方法
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
添加依赖
com.google.guava guava 28.2-android
看的这位博主的文章