我正在研究Spring Framework.并制作了一个junit类,但我无法正确加载在junit类中运行@Test方法所需的xml文件.就我而言
WEB-INFtest/<package_name>请建议我正确声明xml文件的方法
@ContextConfiguration
@ContextConfiguration( locations={ "classpath:/applicationContext.xml",
"classpath:/applicationDatabaseContext.xml" })
Run Code Online (Sandbox Code Playgroud)
错误:
允许TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@48fa48fa]准备测试实例[]时出现异常java.lang.IllegalStateException:无法加载ApplicationContext