开发者

Spring class EnvironmentCapable

开发者 https://www.devze.com 2023-03-20 18:08 出处:网络
I received run-time error for string ApplicationContext context = new ClassPathXmlApplicationContext(\"Beans.xml\");

I received run-time error for string

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

java.lang.NoClassDefFoundError: o开发者_如何学运维rg/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.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消