Ver código fonte

Convert initial version to @SpringBootApplication

Greg Turnquist 9 anos atrás
pai
commit
1237c1df02
1 arquivos alterados com 2 adições e 6 exclusões
  1. 2
    6
      initial/src/main/java/hello/Application.java

+ 2
- 6
initial/src/main/java/hello/Application.java Ver arquivo

@@ -3,14 +3,10 @@ package hello;
3 3
 import java.util.Arrays;
4 4
 
5 5
 import org.springframework.boot.SpringApplication;
6
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
6
+import org.springframework.boot.autoconfigure.SpringBootApplication;
7 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 10
 public class Application {
15 11
     
16 12
     public static void main(String[] args) {