Merge pull request #10827 from azhwani/BAEL4608

BAEL-4608: Spring Boot Error "ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean"
This commit is contained in:
Jonathan Cook 2021-06-05 10:07:56 +02:00 committed by GitHub
commit ab93764e9c
2 changed files with 22 additions and 0 deletions

View File

@ -15,6 +15,14 @@
<relativePath>../</relativePath>
</parent>
<!-- Added in order to produce ApplicationContextException error -->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<finalName>spring-boot-exceptions</finalName>
<resources>

View File

@ -0,0 +1,14 @@
package com.baeldung.applicationcontextexception;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//Remove this annotation to produce ApplicationContextException error
@SpringBootApplication
public class MainEntryPoint {
public static void main(String[] args) {
SpringApplication.run(MainEntryPoint.class, args);
}
}