org.springframework.context.ApplicationContextException: Unable to start ServletWebServer bean.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_41535326/article/details/102463814

SpringBoot启动的时候报异常:

Caused by: org.springframework.context.ApplicationContextException:
Unable to start ServletWebServerApplicationContext due to missing
ServletWebServerFactory bean.

添加以下依赖即可:

  <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-core</artifactId>
            <version>9.0.22</version>
  </dependency>

猜你喜欢

转载自blog.csdn.net/weixin_41535326/article/details/102463814