Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

Posted 大数据从业者

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean相关的知识,希望对你有一定的参考价值。

在Spring Boot项目中,出现这个错误有两种情况:

一,在main方法所在的类忘记添加@SpringBootApplication

二,缺少依赖,添加即可

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

 

以上是关于Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean的主要内容,如果未能解决你的问题,请参考以下文章

Android Studio - Unable to create Debug Bridge: Unable to start adb server: adb server version (32)

The required Server component failed to start so Tomcat is unable to start解决之一

SpringBoot Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFact

Tomcat unable to start within 45 seconds.

Error Unable to start the Genymotion virtual device.解决

unable to retrieve audiotrack pointer for start 怎么回事儿