swagger配置後,系統無法啓動,報Failed to start bean 'documentationPluginsBootstrapper'

swagger與springboot版本不兼容解決方案:

1.swagger依賴版本過高,可以降低版本。
2.在swagger配置類的application.yml配置文件中添加如下內容:

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

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

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