[英]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.