【发布时间】:2014-06-18 10:37:54
【问题描述】:
例如,现在在每个测试课中我都要做
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(loader=AnnotationConfigContextLoader.class)
我想摆脱
@ContextConfiguration(loader=AnnotationConfigContextLoader.class)
并希望 Spring 扫描我项目中的所有 bean。
我该怎么做?
【问题讨论】:
标签: spring unit-testing spring-test