基于maven构建spring项目报错_NestedRuntimeException cannot be resolved

来源:互联网 发布:mac 一个或多个 编辑:程序博客网 时间:2024/05/17 02:17

you can also access to http://dhatria.com/2016/05/26/foe03/

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.

0 0
原创粉丝点击