生命无罪,健康万岁,大家好我是laity。
报错1开发中问题梳理
Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
报错2Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
无法启动网络服务器;嵌套异常是 org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean。
本人解决方案由于缺少 ServletWebServerFactory bean,无法启动 ServletWebServerApplicationContext。
仅供参考
发生 网络异常报错说明本地服务提不起来,也检查了很久,最后在pom文件发现了端倪;
org.springframework.boot spring-boot-starter-web
通过取消移除内置的tomcat成功解决了该报错,希望对你有所帮助!!!



