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, 然後看第二個突然醒悟
相關文章
相關標籤/搜索