ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

The solution is:

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

spring:
  main:
    web-application-type: none

Leave a Comment