接手一個spring boot2.0 web專案要做一些小修改,本人之前是做.Net,按網上教程弄了幾天也沒辦法跑起來,一直報錯。
不知道是少了檔案還是沒配置好,有人幫忙看一下嗎? 能遠程最好
事成紅包答謝。
uj5u.com熱心網友回復:
環境:作業系統Win10,IDEA 2020.3 試用版未過期,tomacat 8, MySql 5uj5u.com熱心網友回復:
這里的老哥們應該還沒下班uj5u.com熱心網友回復:
你可以發報錯的圖片uj5u.com熱心網友回復:
https://blog.csdn.net/dotnetstudio/article/details/61414974uj5u.com熱心網友回復:
具體可以私信我
uj5u.com熱心網友回復:
接手前都跑不起來嘛?uj5u.com熱心網友回復:
你把報錯資訊給出來啊uj5u.com熱心網友回復:
在main方法中運行后報錯
Exception encountered during context initialization - cancelling refresh attempt: 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.
uj5u.com熱心網友回復:
用tomcat配置war包能運行
uj5u.com熱心網友回復:
啟動類有沒有添加@SpringBootApplication或者添加依賴
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
uj5u.com熱心網友回復:
試了,還是一樣的錯誤,改了配置要編譯什么的嗎,還是直接運行
uj5u.com熱心網友回復:
點擊clean后運行,報錯
Exception encountered during context initialization - cancelling refresh attempt: 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.
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/256539.html
標籤:Web 開發
上一篇:演算法題:給出月度考勤資料,列出出勤率倒數后三名的隊伍名稱、應該出勤總天數、實際出勤總天數,以及出勤率。
下一篇:Netty 和 Mule
