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:
commit
ab93764e9c
@ -15,6 +15,14 @@
|
|||||||
<relativePath>../</relativePath>
|
<relativePath>../</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<!-- Added in order to produce ApplicationContextException error -->
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>spring-boot-exceptions</finalName>
|
<finalName>spring-boot-exceptions</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user