您的位置:首页 > 编程语言 > Java开发

Spring整合JUnit4测试,使用注解引入一个或多个配置文件

2017-03-15 15:27 811 查看
一般情况下:

[html] view
plain copy

 





@ContextConfiguration(Locations="../applicationContext.xml")   

多个文件时,可用{;}

[html] view
plain copy

 





@ContextConfiguration(locations = { "classpath*:/spring1.xml", "classpath*:/spring2.xml" })   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐