一般情况下: [html] view plain copy @ContextConfiguration(Locations="../applicationContext.xml") 多个文件时,可用{;} [html] view plain copy @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })