cleanup code
This commit is contained in:
parent
fb529aeee2
commit
775b2585ab
@ -15,7 +15,7 @@
|
|||||||
<relativePath>../</relativePath>
|
<relativePath>../</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<!-- Added in order to produce ApplicationContextException -->
|
<!-- Added in order to produce ApplicationContextException error -->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
package com.baeldung.applicationcontextexception;
|
|
||||||
|
|
||||||
import org.springframework.boot.WebApplicationType;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
public class MainClass {
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
new SpringApplicationBuilder(MainClass.class).web(WebApplicationType.NONE).run(args);
|
|
||||||
}
|
|
||||||
}
|
|
@ -3,7 +3,7 @@ package com.baeldung.applicationcontextexception;
|
|||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
//Remove this annotation to produce ApplicationContextException
|
//Remove this annotation to produce ApplicationContextException error
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class MainEntryPoint {
|
public class MainEntryPoint {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user