Dependency ‘org.springframeworkspring-context5.0.2.RELEASE‘ not found

简介: Dependency ‘org.springframeworkspring-context5.0.2.RELEASE‘ not found

IDEA中maven项目导入spring依赖报错。

如图,下载相应版本的jar包一直是红色的(圈出来的部分,这是我修改后的)。

Dependency 'org.springframework:spring-context:5.0.2.RELEASE' not found

其实在这之前,包括导入mysql依赖等,也会出现无法下载资源。

解决办法

File → Setting → Maven,如图所示。

最后,选择项目的pom.xml 右键maven → Download sources.

相关文章
|
2月前
|
Java Maven 开发工具
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repac
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repac
23 0
|
9月前
|
Java Maven Spring
【BUG】Failed_to_execute_goal_org.springframework
【BUG】Failed_to_execute_goal_org.springframework
|
9月前
|
Java
Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServer
Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServer
|
12月前
|
NoSQL Java Redis
Unsatisfied dependency expressed through field /Injection of autowired dependencies failed 解决方法
根据报错的关键字,大底的意思就是依赖方面的问题。
143 0
|
Java Maven
Can not resolve org.springframework:spring-test:5.1.8.RELEASE
Can not resolve org.springframework:spring-test:5.1.8.RELEASE
143 0
|
缓存
Project ‘org.springframework.boot:spring-boot-starter-parent:1.5.7.RELEASE‘ not found
Project ‘org.springframework.boot:spring-boot-starter-parent:1.5.7.RELEASE‘ not found
|
缓存
project ‘org.springframework.boot:spring-boot-starter-parent:2.1.4.RELEASE‘ not found
project ‘org.springframework.boot:spring-boot-starter-parent:2.1.4.RELEASE‘ not found
145 0
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found
101 0
Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0‘
Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0‘
111 0
|
开发框架 Java Spring
Spring AOP异常:Error creating bean with name ‘org.springframework.aop.aspectj.
Spring AOP异常:Error creating bean with name ‘org.springframework.aop.aspectj.