@ContextConfiguration注解说明

@ContextConfiguration Spring整合JUnit4测试时,使用注解引入多个配置文件


单个文件 @ContextConfiguration(Locations="../applicationContext.xml") @ContextConfiguration(classes = SimpleConfiguration.class) 多个文件时,可用{} @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })
One who want to wear the crown. Bear the crown.
原文地址:https://www.cnblogs.com/z0228-0322x/p/6164365.html