原文: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