【发布时间】:2011-11-17 22:38:45
【问题描述】:
我使用的是 spring 3。我会在集成测试中使用我的 webapp (WEB-INF/app-context ..etc) 中的 beans 配置。
这可能吗?我需要在我的测试上下文 (IntegrationText-context.xml) 中添加什么(如果那是正确的地方)来做到这一点?
我已经在代码中尝试了@ContextConfiguration(locations={"classpath:WEB-INF/app-context/*.xml"),但我得到了 FileNotFound..
基本上我是在尝试在集成测试中重用 webapp 的配置。
【问题讨论】:
标签: spring configuration integration-testing