Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring类环境支持_Spring_Class_Package_Environment - Fatal编程技术网

Spring类环境支持

Spring类环境支持,spring,class,package,environment,Spring,Class,Package,Environment,我收到字符串的运行时错误 ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml"); java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable 我已经检查了jar org.springframework.core-3.0.4.RELEASE.jar,但没有找到这个类。 这门课在哪个包里?谢谢。我认

我收到字符串的运行时错误

ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");

java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable
我已经检查了jar org.springframework.core-3.0.4.RELEASE.jar,但没有找到这个类。
这门课在哪个包里?谢谢。

我认为需要使用这个类提供的包org.springframework.core-3.1.0.M2.jar中的版本3.1.0。

这是一个Spring 3.1(仍然是一个里程碑版本)类。如果您打算使用Spring3.0,您一定是无意中混入了一些3.1内容