日期:2014-05-18 浏览次数:20557 次
public static void main(String[] args) {
ApplicationContext context =new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml","task.xml"});
}
hy
[2013-07-24 09:55:23,864 INFO at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)] Loading XML bean definitions from class path resource [applicationContext.xml]
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: class path resource [applicationContext.xml]