From 788ff97bd62778a045b533ba26804c953bc1fd1c Mon Sep 17 00:00:00 2001
From: Yo Vinchen <2982554722@qq.com>
Date: Thu, 9 Mar 2023 22:12:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/compiler.xml | 2 +-
...ing_boot_configuration_processor_3_0_3.xml | 13 ------
.idea/modules.xml | 1 -
springboot_01_01_quickstart/.gitignore | 33 +++++++++++++++
springboot_01_01_quickstart/pom.xml | 41 +++++++++++++++++++
.../Springboot0101QuickstartApplication.java | 13 ++++++
.../src/main/java/com/yv/User.java | 10 +++++
.../com/yv/controller/BookController.java | 21 ++++++++++
.../src/main/resources/application.properties | 1 +
...ingboot0101QuickstartApplicationTests.java | 13 ++++++
.../com/yv/Springboot04JunitApplication.java | 3 ++
11 files changed, 136 insertions(+), 15 deletions(-)
delete mode 100644 .idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_3_0_3.xml
create mode 100644 springboot_01_01_quickstart/.gitignore
create mode 100644 springboot_01_01_quickstart/pom.xml
create mode 100644 springboot_01_01_quickstart/src/main/java/com/yv/Springboot0101QuickstartApplication.java
create mode 100644 springboot_01_01_quickstart/src/main/java/com/yv/User.java
create mode 100644 springboot_01_01_quickstart/src/main/java/com/yv/controller/BookController.java
create mode 100644 springboot_01_01_quickstart/src/main/resources/application.properties
create mode 100644 springboot_01_01_quickstart/src/test/java/com/yv/Springboot0101QuickstartApplicationTests.java
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 1ba6028..a218f97 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -10,8 +10,8 @@
-
+
diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_3_0_3.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_3_0_3.xml
deleted file mode 100644
index 63a12d1..0000000
--- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_3_0_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
index e375180..bec1e1f 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,6 @@
-
diff --git a/springboot_01_01_quickstart/.gitignore b/springboot_01_01_quickstart/.gitignore
new file mode 100644
index 0000000..549e00a
--- /dev/null
+++ b/springboot_01_01_quickstart/.gitignore
@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
diff --git a/springboot_01_01_quickstart/pom.xml b/springboot_01_01_quickstart/pom.xml
new file mode 100644
index 0000000..9a44c86
--- /dev/null
+++ b/springboot_01_01_quickstart/pom.xml
@@ -0,0 +1,41 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.0.4
+
+
+ com.yv
+ springboot_01_01_quickstart
+ 0.0.1-SNAPSHOT
+ springboot_01_01_quickstart
+ Demo project for Spring Boot
+
+ 17
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/springboot_01_01_quickstart/src/main/java/com/yv/Springboot0101QuickstartApplication.java b/springboot_01_01_quickstart/src/main/java/com/yv/Springboot0101QuickstartApplication.java
new file mode 100644
index 0000000..0f662c9
--- /dev/null
+++ b/springboot_01_01_quickstart/src/main/java/com/yv/Springboot0101QuickstartApplication.java
@@ -0,0 +1,13 @@
+package com.yv;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class Springboot0101QuickstartApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Springboot0101QuickstartApplication.class, args);
+ }
+
+}
diff --git a/springboot_01_01_quickstart/src/main/java/com/yv/User.java b/springboot_01_01_quickstart/src/main/java/com/yv/User.java
new file mode 100644
index 0000000..9b56106
--- /dev/null
+++ b/springboot_01_01_quickstart/src/main/java/com/yv/User.java
@@ -0,0 +1,10 @@
+package com.yv;
+
+import org.springframework.stereotype.Component;
+
+/**
+ * @author YoVinchen
+ */
+@Component
+public class User {
+}
diff --git a/springboot_01_01_quickstart/src/main/java/com/yv/controller/BookController.java b/springboot_01_01_quickstart/src/main/java/com/yv/controller/BookController.java
new file mode 100644
index 0000000..3bab2fe
--- /dev/null
+++ b/springboot_01_01_quickstart/src/main/java/com/yv/controller/BookController.java
@@ -0,0 +1,21 @@
+package com.yv.controller;
+
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * Rest模式
+ *
+ * @author YoVinchen
+ */
+@RestController
+@RequestMapping("/books")
+public class BookController {
+ @GetMapping
+ public String getById() {
+ System.out.println("springBoot is running ......");
+ return "springBoot is running ......";
+ }
+}
diff --git a/springboot_01_01_quickstart/src/main/resources/application.properties b/springboot_01_01_quickstart/src/main/resources/application.properties
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/springboot_01_01_quickstart/src/main/resources/application.properties
@@ -0,0 +1 @@
+
diff --git a/springboot_01_01_quickstart/src/test/java/com/yv/Springboot0101QuickstartApplicationTests.java b/springboot_01_01_quickstart/src/test/java/com/yv/Springboot0101QuickstartApplicationTests.java
new file mode 100644
index 0000000..ecdac80
--- /dev/null
+++ b/springboot_01_01_quickstart/src/test/java/com/yv/Springboot0101QuickstartApplicationTests.java
@@ -0,0 +1,13 @@
+package com.yv;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class Springboot0101QuickstartApplicationTests {
+
+ @Test
+ void contextLoads() {
+ }
+
+}
diff --git a/springboot_04_junit/src/main/java/com/yv/Springboot04JunitApplication.java b/springboot_04_junit/src/main/java/com/yv/Springboot04JunitApplication.java
index 9bf583a..3c9e8c0 100644
--- a/springboot_04_junit/src/main/java/com/yv/Springboot04JunitApplication.java
+++ b/springboot_04_junit/src/main/java/com/yv/Springboot04JunitApplication.java
@@ -3,6 +3,9 @@ package com.yv;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+/**
+ * @author yovinchen
+ */
@SpringBootApplication
public class Springboot04JunitApplication {