class path resource [xxxx.xml] cannot be opened because it does not exist

運行測試類報:class path resource [xxxx.xml] cannot be opened because it does not exist
百度了一下常見問題:
1.web.xml配置不正確。 2:build project工程後沒有將資源文件resources下的配置文件拷貝到out目錄下面的classes目錄下。
因爲是測試類,所以直接排除了問題1,
然後看第二個突然醒悟,我把集成環境的conf下的xml數據都給拷貝到測試路徑下的conf下了,然後直接執行報的這個問題,
解決:
操作了 clean 和 install 然後再執行測試方法就沒問題了
在這裏插入圖片描述