[英]How to add an external library in maven intellij
我從 github 復制了一些代碼,但庫有問題。 我的代碼看起來像:
當我單擊身份驗證以添加 maven 依賴項時
它表明沒有結果
我做錯了什么? 在單擊“添加 maven 依賴項”之前我應該安裝任何東西嗎?
添加
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.4.0</version>
</dependency>
到你的 pom.xml
或者只是搜索另一個依賴項。 https://mvnrepository.com/
您需要在 pom 文件中添加 maven 依賴: https : //mvnrepository.com/artifact/org.springframework.security/spring-security-core
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.