IDEA ClassNotFoundException: org.springframework.web.context.ContextLoaderListener報錯

問題描述: IDEA中啓動tomcat,報錯ContextLoaderListener找不到 解決問題: 因爲打包時候沒有將引用資源打包出來,所以需要手動添加資源文件到輸出包中。 IDEA中的操作: 在IDEA中點擊File > Project Structure > Artifacts > 在右側Output Layout右擊項目名,選擇Put into Output Root 運行效果: 補充
相關文章
相關標籤/搜索