Spring Boot2.6以上与Swagger2冲突的问题解决

Spring Boot2.6以上与Swagger2冲突的问题解决,第1张

Spring Boot2.6以上与Swagger2冲突的问题解决

因是在springboot2.6.0中将SpringMVC 默认路径匹配策略从AntPathMatcher 更改为PathPatternParser,导致出错

 

解决办法是切换回原先的AntPathMatcher

解决方式:
spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5708176.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存