myeclipse中用maven構建ssm框架遇到的相關錯誤及解決辦法

1.myeclipse, maven, 新加一個包之後出現An error occurred while filtering resources錯誤

解決方案:右鍵項目--》maven--》update project  

我百度了一下,An error occurred while filtering resources的翻譯是“篩選資源時出錯”其實注意翻譯就會發現了,只是出錯提示裏沒有明確表示是maven的問題。

參考資料:https://blog.csdn.net/asdfsadfasdfsa/article/details/52946490

2.錯誤:讀取xxxx.jar時出錯; invalid LOC header (bad signature)錯誤

解決方案:把提示的文件刪掉讓maven重新下載

參考資料:https://www.cnblogs.com/sos-blue/p/5935405.html

3.錯誤:配置數據庫時,啓動報錯:對實體 "xxxxxxx" 的引用必須以 ';' 分隔符結尾

解決方案:&符號需要使用"&"轉義

參考資料:https://blog.csdn.net/qq_43308851/article/details/85320853
 

4. 錯誤: 編碼GBK的不可映射字符

解決方案:在pom.xml的/project/build/plugins/下的編譯插件聲明中加入下面的配置:<encoding>UTF-8</encoding>

參考資料:https://www.cnblogs.com/lavezhang/p/5582484.html

 

 

 

 

特此記錄。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章