spring 整合junit
@RunWith(SpringJUnit4ClassRunner.class) // spring 整合junit 4
@ContextConfiguration(locations = "classpath:applicationContext.xml") // applicationContext.xml的位置
public class AspectJAopDepTest {
@Autowired
private UserService userService;
@Test
public void test01() {
userService.login();
}
}