问题描述
- java junit测试报错找不到自己定义的xml文件 跪求各位高手帮忙解决一下
-
eclipse下junit测试时遇到如下错误,错误内容如下:
at jp.co.dgic.eclipse.jdt.internal.junit.runner.DJUnitRunner.main(DJUnitRunner.java:49)
caused by:org.springframework.beans.factory.
BeanDefinitionStoreException:IoException parsing XML document from class path resource [applicationContext_com.xml] ;nested exception is java.io.FileNotFoundException:class path resource[application_com.xml] cannot be opend because it does not exist相关代码:System.setProperty("system.spf.appCtxProp.fileNames","applicationContext_com.xml,applicationContext_Mee.xml");
框架用的是spring
时间: 2024-11-02 17:44:09