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>
|
||||
</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>
|
||||
|
|
|
@ -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…
Reference in New Issue