欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解決IDEA報錯Failed?to?start?bean‘documentationPluginsBootstrapper‘問題

 更新時間:2024年07月27日 11:12:35   作者:Sucker_蘇  
這篇文章主要介紹了解決IDEA報錯Failed?to?start?bean‘documentationPluginsBootstrapper‘問題,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教

IDEA報錯Failed to start bean‘documentationPluginsBootstrapper‘

在使用IDEA做項目時使用了Swagger進行接口文檔的處理。

swagger 使用的版本為2.9.2,Springboot版本是2.6.2

問題

啟動項目后發(fā)生了以下核心報錯:

Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

分析

網(wǎng)上各種解決方案皆為降低swagger版本或者降低Springboot版本,雖然有一定道理,但是實際上并不需要降低版本,發(fā)生這個問題的關鍵在于

Springboot高版本更改了以前的默認配置(此處由于本人水平有限,說的不夠明確,但無需在意)

解決

在application.properties的配置文件中將其改為原來的方式即可

同時這個也能解決swagger彈窗問題

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

IDEA常見報錯及解決梳理

1:Error:Cannot determine path to ‘tools.jar’ library for 16 (/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home)

找不到16版本的‘tools.jar’文件

總結

以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關文章

最新評論