Spring class EnvironmentCapable

走远了吗. 提交于 2019-11-30 03:54:21

问题


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.


回答1:


I think that need use version 3.1.0 - in package org.springframework.core-3.1.0.M2.jar this class presents.




回答2:


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.



来源:https://stackoverflow.com/questions/6726023/spring-class-environmentcapable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!