转自:https://blog.csdn.net/pwh309315228/article/details/62226372
一般情况下:
- @ContextConfiguration(Locations="../applicationContext.xml")
多个文件时,可用{}
-
- @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })
- @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })