一般情况下: @ContextConfiguration(Locations="../applicationContext.xml") 多个文件时,可用{} @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" }) 转载于:https://www.cnblogs.com/lxl57610/p/7045136.html