Spring整合JUnit4测试时,使用注解引入多个配置文件
时间:
2017-06-18 20:24:13
阅读:
433
评论:
收藏:
0
[点我收藏+]
一般情况下:
- @ContextConfiguration(Locations="../applicationContext.xml")
多个文件时,可用{}
- @ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })
Spring整合JUnit4测试时,使用注解引入多个配置文件
原文:http://www.cnblogs.com/lxl57610/p/7045136.html