Fork me on GitHub

使用spring的test时,当配置文件不在classpath下,而在WEB-INF下

@ContextConfiguration(locations = {"file:src/main/webapp/WEB-INF/applicationContext.xml"})

 

posted @ 2017-03-16 16:01  gouermazi  阅读(328)  评论(0)    收藏  举报