junit测试web项目头文件



后台测试web项目的时候用junit的时候在需要加以下注释语句(但是不能测试webService项目)

@RunWith(SpringJUnit4ClassRunner.class)

@ContextConfiguration(locations = {“classpath:/spring-datasource.xml”,"/spring-mybatis-sessionfactory.xml"})