错误截图:
错误原因:Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
解决方案:
在配置文件application.yml里面添加以下内容:
spring.mvc.pathmatch.matching-strategy: ANT_PATH_MATCHER
即可解决!
错误截图:
错误原因:Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
解决方案:
在配置文件application.yml里面添加以下内容:
spring.mvc.pathmatch.matching-strategy: ANT_PATH_MATCHER
即可解决!