Spring 类 EnvironmentCapable
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6726023/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Spring class EnvironmentCapable
提问by user710818
I received run-time error for string
我收到字符串的运行时错误
ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable
I have checked jar org.springframework.core-3.0.4.RELEASE.jar and doesnt' found this class. In which package this class? Thanks.
我检查了 jar org.springframework.core-3.0.4.RELEASE.jar 并没有找到这个类。这个类在哪个包中?谢谢。
回答by user810430
I think that need use version 3.1.0 - in package org.springframework.core-3.1.0.M2.jar this class presents.
我认为需要使用版本 3.1.0 - 在 org.springframework.core-3.1.0.M2.jar 这个类中的包中。
回答by Ryan Stewart
That's a Spring 3.1 (still a milestone release) class. If you're intending to use Spring 3.0, you must have mixed in some 3.1 stuff accidentally.
那是 Spring 3.1(仍然是里程碑版本)的类。如果您打算使用 Spring 3.0,那么您一定不小心混入了一些 3.1 的东西。

