From 9a0ce77cef7965a7d46293e8a3339b6010a676e4 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sat, 9 Jan 2021 09:58:54 -0500 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E7=85=A7=E7=A4=BA=E4=BE=8B=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=BA=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring-boot-1st/src/main/java/Example.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 spring-boot-modules/spring-boot-1st/src/main/java/Example.java diff --git a/spring-boot-modules/spring-boot-1st/src/main/java/Example.java b/spring-boot-modules/spring-boot-1st/src/main/java/Example.java new file mode 100644 index 0000000000..bb84d57893 --- /dev/null +++ b/spring-boot-modules/spring-boot-1st/src/main/java/Example.java @@ -0,0 +1,18 @@ +import org.springframework.boot.*; +import org.springframework.boot.autoconfigure.*; +import org.springframework.web.bind.annotation.*; + +@RestController +@EnableAutoConfiguration +public class Example { + + @RequestMapping("/") + String home() { + return "Hello World!"; + } + + public static void main(String[] args) { + SpringApplication.run(Example.class, args); + } + +} \ No newline at end of file