美文网首页
解决Maven项目出现 Cannot resolve org.s

解决Maven项目出现 Cannot resolve org.s

作者: WMSmile | 来源:发表于2021-07-30 17:08 被阅读0次

解决Maven项目出现 Cannot resolve org.springframework.security:spring-security-web:5.5.1

当我们使用maven 会出现 Cannot resolve org.springframework.security:spring-security-web:5.5.1
的error

原因:网络不好的时候导致文件未下载完整

解决办法:

去对应的本地仓库repository找到对应的版本删除,进入项目右键-maven-reimport 就可以了。

mac系统 /user/xxx/.m2/repository

以Cannot resolve org.springframework.security:spring-security-web:5.5.1为例


在这里插入图片描述

删除5.5.1版本,重新进入项目-右键-maven-reimport 就可以了。

相关文章

网友评论

      本文标题:解决Maven项目出现 Cannot resolve org.s

      本文链接:https://www.haomeiwen.com/subject/lvrcvltx.html