注解都不加,肯定报错啊,要加上指向配置类的注解
@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration("classpath:applicationContext.xml")