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

原创 2018年02月05日 09:56:18
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructor0(Class.java:3075)
	at java.lang.Class.newInstance(Class.java:412)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4733)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resource
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
	... 14 more

由错误可知,缺少spring-core.jar,在pom.xml加入即可

<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-core</artifactId>
	  <version>4.1.7.RELEASE</version>
</dependency>


版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_30938705/article/details/79257044

java.lang.ClassNotFoundException: org.springframework.core.SpringProperties

调试时报错 Caused by: java.lang.NoClassDefFoundError: org/springframework/core/SpringProperties at org.sp...
  • manyangyangya
  • manyangyangya
  • 2017-11-06 15:56:20
  • 1347

Spring中java.lang.NoClassDefFoundError: org/springframework/core/MethodIntrospector

使用Spring时出现如下异常:java.lang.NoClassDefFoundError: org/springframework/core/MethodIntrospector原因是spring...
  • wang704987562
  • wang704987562
  • 2017-01-14 14:16:22
  • 1558

java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey

报错日志java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey at org.springframewo...
  • Aurora_sss
  • Aurora_sss
  • 2017-12-04 11:47:07
  • 220

spring security报错--java.lang.NoClassDefFoundError: org/springframework/core/SpringProperties

错误如图:        出现这个错的原因是导入的spring security 的版本与自己的spring 的依赖 包的版本有不一致引起的,我的spring 版本是 4.1.3的发行版,spr...
  • November22
  • November22
  • 2017-02-28 13:20:08
  • 648

junit4+spring单元测试java.lang.NoClassDefFoundError:org/springframework/core/SpringProperties

报这个错 java.lang.NoClassDefFoundError:org/springframework/core/SpringProperties 搞了老半天,原来是pom里面的版本不一致 ...
  • crystal_tyan
  • crystal_tyan
  • 2014-11-30 16:09:02
  • 4616

关于maven出现java.lang.NoSuchMethodError: org.springframework.core.io.ResourceEditor

这个问题多半是出现jar包冲突 可能是重复引入相同的jar包引入其他jar包时,内部依赖(包含了)相同的jar包 解决方案:找到pom.xml文件,调至dependency hierarchy...
  • sinat_37464123
  • sinat_37464123
  • 2017-05-23 13:16:35
  • 1016

JavaWeb:java.lang.NoClassDefFoundError:org/springframework/core/OrderComparator

JavaWeb:java.lang.NoClassDefFoundError: org/springframework/core/OrderComparator$OrderSourceProvider...
  • yitian881112
  • yitian881112
  • 2018-01-08 09:31:51
  • 232

java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport

缺少:org.springframework.transaction-3.0.5.RELEASE.jar
  • Truong
  • Truong
  • 2013-12-15 20:55:43
  • 25558

java.lang.NoSuchMethodError: org.springframework.core.io.ResourceEditor错误

一般是jar包冲突,或者某些jar包版本不同。 如上,spring其他包的版本均为4.2.5,而spring-webmvc的jar包为1.2.6版本,造成版本冲突。 ...
  • danchaofan0534
  • danchaofan0534
  • 2016-04-22 14:38:59
  • 5801

org.springframework.core.io.Resource接口源码分析

该接口继承了InputStreamSource接口 boolean exists(); 返回该资源是否存在 boolean isReadable(); 返回该资源是否是可读资源 bo...
  • show_me_the_world
  • show_me_the_world
  • 2015-10-18 00:29:47
  • 2240
收藏助手
不良信息举报
您举报文章:java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
举报原因:
原因补充:

(最多只允许输入30个字)