错误
SpringBoot2.6.1在整合Swagger3时报错:
之所以报错是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。 解决方案,修改application.yaml :
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher