首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

junit4 里 Spring 配置文件加载途径写法

2012-07-31 
junit4 里 Spring 配置文件加载路径写法?配置文件在src下:@ContextConfiguration(locations classpath:

junit4 里 Spring 配置文件加载路径写法

?

配置文件在src下:

@ContextConfiguration(locations = "classpath:applicationContext-*.xml")

?

配置文件在/WEB-INF下:

@ContextConfiguration(locations = "file:WebRoot/WEB-INF/applicationContext-*.xml")
?

热点排行