@ContextConfiguration注解说明

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


单个文件 @ContextConfiguration(Locations="../applicationContext.xml") @ContextConfiguration(classes = SimpleConfiguration.class) 多个文件时,可用{} @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })
posted @ 2016-12-12 14:24  奇点23  阅读(30918)  评论(0编辑  收藏  举报