maven中配置引入junit4的jar包
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/spring-client.xml", "classpath:spring/applicationContext.xml"})
public class TestWithSpring {
@Autowired
private WishService wishService;
@Test
public void testEh() {
}
}