且构网

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

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

更新时间:2022-05-19 17:03:04

解决方案是:

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

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

spring:
  main:
    web-application-type: none