springjdbc with preparedstatement

时间:2017-12-29 13:58:01

标签: spring spring-jdbc

在运行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)

1 个答案:

答案 0 :(得分:0)

试试这个

appContext = new ClassPathXmlApplicationContext(             new String [] {" / /combined2.xml" ;," / /xxx.xml"});

相关问题