Spring Junit 读取Resource、WEB-INF目录下的配置文件

2017.12.2 spring
@RunWith(SpringJUnit4ClassRunner.class)  
@ContextConfiguration(locations={"classpath:applicationContext.xml"})
@RunWith(SpringJUnit4ClassRunner.class)  
@ContextConfiguration(locations={"file:src/main/webapp/WEB-INF/applicationContext.xml"})

更新列表:

参考文章:

相关阅读