原文:IDEA2020.2啟動 springboot項目報錯 Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

完整報錯內容如下 分析原因: springboot項目配置文件pom.xm里,有關springboot的依賴tomcat有如下配置: 解決辦法: 打開:Edit Configurations...,勾上Include dependencies with Provided scope,點擊Apply,OK,然后重新編譯運行即可。 ...

2021-06-21 15:44 0 170 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM