org.springframework.context.ApplicationContextException: Unable to start web server; nested exceptio


詳細錯誤信息:

org.springframework.context.ApplicationContextException: 
Unable to start web server; nested exception is org.springframework.context.ApplicationContextException:
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

常規解決辦法:
參考如下鏈接即可:
org.springframework.context.ApplicationContextException: Unable to start web server; nested exceptio

但是也分情況。比分我這次遇到是關於不同Maven多模塊相互依賴關系導致此類錯誤,理解Maven多模塊之間的依賴關系即可解決。

由此可以看出Maven多模塊一定得設計好以及依賴關系一定要明確,否則項目啟動報錯、打包報錯等各種奇葩錯誤弄得你懷疑人生。

不過兵來將擋,水來土淹。經過這幾年得錯誤洗禮,面對錯誤,我也不再像過去煩躁或膽怯,因為我知道煩躁和膽怯是解決不了問題的。面對錯誤,就是要直接面對它,然后解決它。我提供我的通用思路:

1.把握關鍵錯誤信息

2.根據錯誤信息推斷可能是什么原因

3.要有詳細復現步驟(頁面操作,IDE Debug調試)

4.找到錯誤根本原因

5.最終解決它

有的時候不能面面俱到做到這五步,因為項目非常緊急的情況下和任務繁重,直接把握好第一步,然后把關鍵錯誤信息放搜索引擎一搜基本上就能得到現成的解決方案。

當然了,這需要你具有甄別正確或錯誤的能力,不然的話,很容易被坑。


免責聲明!

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



猜您在找 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplic Unable to start web server; nested exception is org.springframework.context.ApplicationContextException Unable to start web server; nested exception is org.springframework.context.ApplicationContextException Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. 錯誤:org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWeb spring boot 開發 org.springframework.context.ApplicationContextException: Unable to start web server; Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFa nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.報錯解決 org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM