java.lang.NoClassDefFoundError:org / springframework / core / io / ResourceLoader [英] java.lang.NoClassDefFoundError: org/springframework/core/io/ResourceLoader
本文介绍了java.lang.NoClassDefFoundError:org / springframework / core / io / ResourceLoader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用spring进行一些测试,我收到此错误:
I am using spring for some testing, and I am getting this error:
java.lang.NoClassDefFoundError: org/springframework/core/io/ResourceLoader at org.springframework.mock.web.MockHttpServletRequest
我的JAR安装的是:spring-test-2.5.6.jar
The JAR that I installed is: spring-test-2.5.6.jar
除此之外我还需要另一个罐子吗?
Do I need another jar besides this?
谢谢
推荐答案
你还需要 spring-core - * .jar。
您通常可以通过查看包装来判断您缺少哪些罐子。在这个org.springframework.core。*中都是核心jar文件。
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.
这篇关于java.lang.NoClassDefFoundError:org / springframework / core / io / ResourceLoader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文