【IDEA中使用Spring框架】IDEA中导入Spring坐标报错!

本文介绍了解决在pom.xml文件中导入spring坐标时遇到的问题,包括错误信息提示及详细解决步骤。

一. 问题:在pom.xml文件中导入spring坐标报错

··· 控制台输出错误信息:

Cannot resolve org.springframework:spring-context:pom:5.2.10.RELEASE failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework:spring-context:pom:5.2.10.RELEASE from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/springframework/spring-context/5.2.10.RELEASE/spring-context-5.2.10.RELEASE.pom

··· 如图:

 二. 解决方法

·· 步骤1:找到 springframework 目录文件,将其删除,并重启IDEA后再在pom.xml文件中重新导入Spring坐标。

 ··· 步骤2:若成功导入spring坐标,则 springframework 目录文件中可以看到以下文件。若导入失败,则多次重复步骤1操作。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值