zoukankan      html  css  js  c++  java
  • maven构建spring报错org.springframework.core.NestedRuntimeException cannot be resolved.

    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包换到高版本就解决问题了^_^

  • 相关阅读:
    sqlserver查询表字段
    Lombok
    属性配置
    计时器与启动加载器
    banner
    互斥锁和条件变量
    System V消息队列
    命令行参数的处理函数getopt
    posix 消息队列
    不定参数
  • 原文地址:https://www.cnblogs.com/beautifullife4e/p/7505383.html
Copyright © 2011-2022 走看看