java.lang.NoClassDefFoundError: org/springframework/core/io/ResourceLoader

后端 未结 3 342
别那么骄傲
别那么骄傲 2021-01-21 19:05

I am using spring for some testing, and I am getting this error:

java.lang.NoClassDefFoundError: org/springframework/core/io/ResourceLoader  at org.springframewo         


        
相关标签:
3条回答
  • 2021-01-21 19:31

    As per Amir's answer the jar you need is spring-core. You can generally solve this sort of issue by consulting jarfinder http://www.jarfinder.com/index.php/java/search/~org.springframework.core.io.ResourceLoader~

    0 讨论(0)
  • 2021-01-21 19:42

    I strongly advice using Maven (or Ivy or Gradle) for dependency management. It can save you loads of pain in resolving these types of secondary and tertiary dependencies.

    0 讨论(0)
  • 2021-01-21 19:45

    You also need spring-core-*.jar. You can usually tell what jars you are missing by looking at the package. In this org.springframework.core.* is all in the core jar file.

    0 讨论(0)
提交回复
热议问题