swagger3.0与springboot2.6.X不兼容问题
swagger3.0.0版本支持springboot2.6.0以下版本
swagger3.0.0版本,对于2.6.X以上版本不兼容,会报空指针异常
原因是Springfox 使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
##application.yml
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher