代码块
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.0.0.RC2</version>
</dependency>
pom.xml报错信息:
Missing artifact org.springframework:spring-context:jar:5.0.0.RC2
出错原因:
从maven的中央仓库可以看出,5.0.0.RC2这个版本不是来自central这个仓库,见图:
解决办法:
把5.0.0.RC2版本修改为来自central版本,如4.3.10.RELEASE。
本文介绍了一个关于Spring Context依赖版本的问题及其解决方案。当使用5.0.0.RC2版本时,由于该版本未被Maven中央仓库收录,导致pom.xml文件出现错误提示。文章提供了将版本更改为4.3.10.RELEASE等稳定版本的方法。
4万+

被折叠的 条评论
为什么被折叠?



