且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ApplicationContextException:由于缺少 ServletWebServerFactory bean,无法启动 ServletWebServerApplicationContext

更新时间:2021-12-06 17:12:57

解决方案是:

我在 application.yml 文件中将以下属性明确设置为 none.

I explicitly set the below property to none in application.yml file.

spring:
  main:
    web-application-type: none