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  阅读(305)  评论(0编辑  收藏  举报