报错:Caused by: java.lang.IllegalStateException: Neither GenericXmlContextLoader nor AnnotationConfigContextLoader was able to load an ApplicationContext
报错的原因是找不到配置文件
@RunWith(SpringJUnit4ClassRunner.class)在@RunWith下没有添加@ContextConfiguration(locations=“classpath:bean.xml”),注解别写错了
我就是注解写错了