From 84cd41e3a076531671dd66743653bcc733f28c81 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Fri, 12 Aug 2022 21:09:00 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20hello,world=20=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo-helloworld/README.md | 6 +++--- .../{Application.java => HelloworldApplication.java} | 4 ++-- .../SpringBootDemoHelloworldApplicationTests.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename demo-helloworld/src/main/java/com/xkcoding/helloworld/{Application.java => HelloworldApplication.java} (89%) diff --git a/demo-helloworld/README.md b/demo-helloworld/README.md index 6028b48..26a574f 100644 --- a/demo-helloworld/README.md +++ b/demo-helloworld/README.md @@ -25,15 +25,15 @@ ``` -#### 1.2.启动类 Application.java +#### 1.2.启动类 HelloworldApplication.java ```java @SpringBootApplication @RestController -public class Application { +public class HelloworldApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(HelloworldApplication.class, args); } /** diff --git a/demo-helloworld/src/main/java/com/xkcoding/helloworld/Application.java b/demo-helloworld/src/main/java/com/xkcoding/helloworld/HelloworldApplication.java similarity index 89% rename from demo-helloworld/src/main/java/com/xkcoding/helloworld/Application.java rename to demo-helloworld/src/main/java/com/xkcoding/helloworld/HelloworldApplication.java index 97aac12..4932b7d 100644 --- a/demo-helloworld/src/main/java/com/xkcoding/helloworld/Application.java +++ b/demo-helloworld/src/main/java/com/xkcoding/helloworld/HelloworldApplication.java @@ -17,10 +17,10 @@ import org.springframework.web.bind.annotation.RestController; */ @SpringBootApplication @RestController -public class Application { +public class HelloworldApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(HelloworldApplication.class, args); } /** diff --git a/demo-helloworld/src/test/java/com/xkcoding/helloworld/SpringBootDemoHelloworldApplicationTests.java b/demo-helloworld/src/test/java/com/xkcoding/helloworld/SpringBootDemoHelloworldApplicationTests.java index 8281a34..f5d66d6 100644 --- a/demo-helloworld/src/test/java/com/xkcoding/helloworld/SpringBootDemoHelloworldApplicationTests.java +++ b/demo-helloworld/src/test/java/com/xkcoding/helloworld/SpringBootDemoHelloworldApplicationTests.java @@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest -class ApplicationTests { +class HelloworldApplicationTests { @Test void contextLoads() {