使用spring的test时,当配置文件不在classpath下,而在WEB-INF下

@ContextConfiguration(locations = {"file:src/main/webapp/WEB-INF/applicationContext.xml"})
原文地址:https://www.cnblogs.com/tabchanj/p/6559976.html