在运行spring jdbc
时,我收到以下错误:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
答案 0 :(得分:0)
试试这个
appContext = new ClassPathXmlApplicationContext( new String [] {" / /combined2.xml" ;," / /xxx.xml"});