浏览代码

Convert initial version to @SpringBootApplication

Greg Turnquist 9 年前
父节点
当前提交
1237c1df02
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2
    6
      initial/src/main/java/hello/Application.java

+ 2
- 6
initial/src/main/java/hello/Application.java 查看文件

@@ -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) {