码迷,mamicode.com
首页 > 编程语言 > 详细

maven构建spring报错org.springframework.core.NestedRuntimeException cannot be resolved.

时间:2017-09-11 16:27:16      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:work   miss   art   classpath   contex   osi   time   corrupted   cat   

Error:
The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files

Story:
It is most common for developers to forget adding the jars to the classpath. I had apparently missed to add the Spring frameworks core jar to the build path. The dependent spring context jar was added but missed the spring core jar. The application hit this error.

Solution:
This error occurs when the spring-core jar is missing or corrupted. Add/replace the new spring-core-4.2.6.RELEASE.jar (version might not be the same for you) to the build path. You might also need the org.springframework.context-4.2.6.jar. The Jars can be downloaded fromhere. You can always use maven dependencies to resolve this error. When using maven, add the dependency to the pom.xml file.

 

 

将jar包换到高版本就解决问题了^_^

maven构建spring报错org.springframework.core.NestedRuntimeException cannot be resolved.

标签:work   miss   art   classpath   contex   osi   time   corrupted   cat   

原文地址:http://www.cnblogs.com/beautifullife4e/p/7505383.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!