記一次springboot項目,maven引發的悲劇(Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont)

來源:互聯網
上載者:User

標籤:Servle   xml配置   dde   mbed   ring   start   目的   webapp   16px   

maven下載大的項目的時候,jar包下載出錯是常見的,

  但是這種情況經常能看到,如java.lang.ClassNotFoundException這樣的提示,

所以一直以來也覺得maven下載jar錯誤也沒什麼,直到使用了springboot

  因為springboot是內嵌tomcat的,所以當這些關於Tomcat的jar包出錯時,他提示的是:Unable to start EmbeddedWebApplicationContextdue to missing EmbeddedServletCont

出現這種提示是環境啟動失敗,此時應該檢查的maven倉庫下的jar包,除了org.springframework.boot,還應該有 org.apache.tomcat下的jar包,

  因為是第一次使用springboot項目,出現這種錯誤忙活了大半天,想著xml配置的scope出錯,還是依賴衝突,自己都轉暈了

  /(ㄒoㄒ)/~~

記一次springboot項目,maven引發的悲劇(Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.