spring单元测试

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")

public void test1(){

}

原文地址:https://www.cnblogs.com/zhuxiang1633/p/8821912.html