文章出處: https://blog.csdn.net/m0_37557582/article/details/79033587html
固然這裏前提條件是你能搜索到遠程倉庫,若是搜索不到請參考:Intellij idea maven 引用沒法搜索遠程倉庫的解決方案spring
打開pom.xml,在它裏面使用快捷鍵:ALT+Insert ————>點擊dependencymaven
再輸入想要添加的依賴關鍵字,好比:輸個spring 出現下圖:ide
根據需求選擇版本,完成之後結果以下圖:idea