Browse Source

Convert initial version to @SpringBootApplication

Greg Turnquist 9 years ago
parent
commit
1237c1df02
1 changed files with 2 additions and 6 deletions
  1. 2
    6
      initial/src/main/java/hello/Application.java

+ 2
- 6
initial/src/main/java/hello/Application.java View File

3
 import java.util.Arrays;
3
 import java.util.Arrays;
4
 
4
 
5
 import org.springframework.boot.SpringApplication;
5
 import org.springframework.boot.SpringApplication;
6
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
6
+import org.springframework.boot.autoconfigure.SpringBootApplication;
7
 import org.springframework.context.ApplicationContext;
7
 import org.springframework.context.ApplicationContext;
8
-import org.springframework.context.annotation.ComponentScan;
9
-import org.springframework.context.annotation.Configuration;
10
 
8
 
11
-@Configuration
12
-@EnableAutoConfiguration
13
-@ComponentScan
9
+@SpringBootApplication
14
 public class Application {
10
 public class Application {
15
     
11
     
16
     public static void main(String[] args) {
12
     public static void main(String[] args) {