Missing ServletWebServerFactory Spring Boot Bean

Опубликовано: 24 Февраль 2026
на канале: BASE Logic
7,892
30

Solution for:
2018-08-27 15:00:24.286 WARN 87795 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
2018-08-27 15:00:24.492 ERROR 87795 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:398) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at com.example.demo.DemoApplication.main(DemoApplication.java:11) [classes/:na]


#SpringBoot #SpringSecurity #SpringCloud #Java #JavaEE #SpringFramework #MicroServices #Hibernate #JPA #Eclipse #ApacheMaven #Gradle #ContinuousIntegration #EIP #DevOps #Docker

SUBSCRIBE TO OUR MONTHLY NEWSLETTER FOR TIPS & TRICKS AND GREAT INFORMATION!

Email Newsletter ► https://www.baselogic.com/newsletter/

YouTube Channel ► https://www.youtube.com/channel/basel...
GitHub ► https://github.com/mickknutson
Linked IN ►   / mickknutson  
Twitter ►   / mickknutson  
Twitter ►   / baselogic  
FaceBook ►   / baselogic  
Google+ ► https://plus.google.com/+Baselogic

Contact Us ► https://www.baselogic.com/contact/
Spring Boot ► https://www.baselogic.com/tag/spring-...

SUBSCRIBE TO THE BASE LOGIC YOUTUBE CHANNEL!
YouTube Channel ► https://www.youtube.com/channel/basel...