一行配置解决Springboot2.6与Swagger2.9冲突问题

一行配置解决Springboot2.6与Swagger2.9冲突问题,第1张

Springboot整合或升级Swagger2以后出现以下报错

Failed to start bean 'documentationPluginsBootstrapper

网上说在配置类加注解,千万别用!!
@EnableWebMvc

application.properties加入以下代码即可

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

具体原因

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

原文地址: https://outofmemory.cn/langs/877563.html

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

发表评论

登录后才能评论

评论列表(0条)

保存