【发布时间】:2013-09-19 06:57:35
【问题描述】:
我正在测试网络流,我需要找到包含应用程序流的 xml 文件。但我真的不明白为什么需要 put file: 在路径之前,为什么这是必要的?
声明路径:
protected static final String ARREL_FLOWS = "file:src/main/webapp/WEB-INF/flow/";
protected static final String FLOW_CONSULTA_DEUTE = ARREL_FLOWS +"consultaDeutes/consultaDeutes.xml";
测试路径流的代码:
@Test
@Override
protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) {
FlowDefinitionResource resource = resourceFactory.createResource(FLOW_CONSULTA_DEUTE);
Assert.assertNotNull(resource);
return resource;
}
这是 py 项目结构:
ty.
【问题讨论】:
-
你会在stackoverflow.com/questions/11961975/…中找到对
file://的解释 -
这不是同一个问题,但是,我的问题是在另一个项目中不需要放置单词文件:..我只是想知道理解。