Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

简介: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

又双叒叕出错了,我们才解决完Springboot项目不能启动问题,就遇到了启动时报错的问题


这个问题其实很简单,从报错信息Missing ServletWebServerFactory,我们就可以看出来这实际上是一个跟Tomcat有关的问题



查看Pom文件发现,多引入了Tomcat的依赖,导致和IDEA内嵌Tomcat冲突,注释掉后问题解决


相关文章
|
Docker 容器
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
2869 0
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
|
Java API Spring
Gateway网关报错Unable to start ServletWebServerApplicationContext due to missing ServletWebServer
Gateway网关报错Unable to start ServletWebServerApplicationContext due to missing ServletWebServer
267 0
|
8月前
|
Java
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code
147 0
|
Java Spring
【Java】Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
【Java】Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
294 0
|
Java
Error: A JNI error has occurred, please check your installation and try again
Error: A JNI error has occurred, please check your installation and try again
216 0
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
110 0
|
关系型数据库 MySQL Java
解决方案 --Failed to initialize JPA EntityManagerFactory: Unable to create requested service
解决方案 --Failed to initialize JPA EntityManagerFactory: Unable to create requested service
解决方案 --Failed to initialize JPA EntityManagerFactory: Unable to create requested service
|
并行计算 PyTorch 算法框架/工具
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
|
Java
SpringBoot启动报错Unable to start EmbeddedWebApplicationContext due to missing
当启动SpringBoot时报错Unable to start EmbeddedWebApplicationContext due to missing应该如何做?本文带大家解决这个问题。
560 0
SpringBoot启动报错Unable to start EmbeddedWebApplicationContext due to missing