springboot与swagger2冲突解决办法
springboot2.7.12与swagger2.9.2冲突原因:Springfox 假设 Spring MVC 的路径匹配策略是 ant-path-matcher,而 Spring Boot 2.6.x版本的默认匹配策略是 path-pattern-matcher,这就造成了上面的报错。解决办法: 在application.properties 下添加spring.mvc.pathmatch.matching-strategy=ant_path_matcher (yaml按yaml格式来一样)
原创
2023-06-09 11:22:08 ·
410 阅读 ·
0 评论