Error configuring application listener of class org.springframework.web.cont


解決方案 1:
 
1. 打開工程屬性對話框,到Deployment Assembly頁面,點擊Add
 
2. 選擇Jave Build Path Entries
3. 把程序用於的Library加入進來
4. 重新運行Server應該看不到這個問題了
 
 ( 解決方案 1是網上的答案,原鏈接:https://blog.csdn.net/hunhun1122/article/details/80027352)
 
解決方案 2:
解決方案 1並不適合我當下的情況,並且我的eclipse里並沒有Deployment Assembly選項)
(我的情況中Maven Dependencies是存在的)所以如果Maven Dependencies存在,但仍然報
Error configuring application listener of class org.springframework.web.cont異常,那就把Maven Dependencies  Remove掉

,然后右鍵項目在Maven選項中Update Project Configuration,再運行項目后不會再出現Error configuring application listener of class org.springframework.web.cont

錯誤。

之前為了解決這個問題,我把項目和JBoss(Tomcat也一樣)的緩存都clean了一遍。

我這邊項目之所以會出現這種情況有很大的可能是因為我之前對電腦進行了物理關機的操作。


 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Error configuring application listener of class org.springframework.web.context.ContextLoaderListener spring配置問題:嚴重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener 使用Maven構建javaWeb項目時,啟動tomcat出錯:嚴重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.conte Exception sending context initialized event to listener instance of class org.springframework.web.co springmvc開始是遇到的Error instantiating servlet class org.springframework.web.servlet.DispatcherServlet.class問題 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/web/servlet/config/ 異常將上下文初始化事件發送到類的偵聽器實例.[org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class p Idea下maven項目啟動報錯error configuring application springmvc上傳文件報錯org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.multipart.MultipartFile] Error creating bean with name 'persistenceExceptionTranslationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM