swagger配置后,系统无法启动,报Failed to start bean 'documentationPluginsBootstrapper'

swagger与springboot版本不兼容解决方案:

1.swagger依赖版本过高,可以降低版本。
2.在swagger配置类的application.yml配置文件中添加如下内容:

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

我使用的方法二,完美解决。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章