junit4 里 Spring 配置文件加载途径写法
junit4 里 Spring 配置文件加载路径写法
配置文件在src下:
@ContextConfiguration(locations = "classpath:applicationContext-*.xml")
配置文件在/WEB-INF下:
@ContextConfiguration(locations = "file:WebRoot/WEB-INF/applicationContext-*.xml")