原文:idea的maven項目運行出錯_java.io.FileNotFoundException: class path resource [spring/sprint-tx.xml] cannot be opened because it does not exist

前提:idea maven ssm 錯誤信息如下: 一直報class path resource spring sprint tx.xml 不存在 而且resource目錄的文件加載不到target目錄下的classes文件夾里 文件位置如下: pom.xml文件配置了對resource文件 過濾 排查了好久,在網上也見其他人也出現了同種情況 雖然配置了resources過濾,但是就是加載不到cl ...

2019-08-30 15:18 0 377 推薦指數:

查看詳情

解決 java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist

前幾天好好運行的web項目突然跑不起來了 報這個錯誤 很顯然,是找不到配置文件。 1、先考慮recourse目錄下的配置文件路徑是否正確。   點擊文件名可以跳轉,排除這個原因。 2、檢查生成的target/classes 文件下是否有配置文件。   這是輸出目錄的主體 ...

Tue Sep 17 04:30:00 CST 2019 0 2387
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM