From 4b712df2826cbaeaae7c7d3d97e4ca241bda988f Mon Sep 17 00:00:00 2001
From: Yo Vinchen <2982554722@qq.com>
Date: Thu, 2 Mar 2023 17:33:02 +0800
Subject: [PATCH] Initial commit
---
.idea/$PROJECT_FILE$ | 468 ++++++++++++++++++
.idea/.gitignore | 8 +
.idea/README.md | 2 +
.idea/compiler.xml | 21 +
.idea/encodings.xml | 6 +
.idea/intellij-javadocs-4.0.1.xml | 204 ++++++++
.idea/jarRepositories.xml | 20 +
.idea/jpa-buddy.xml | 6 +
.idea/misc.xml | 18 +
.idea/modules.xml | 8 +
.idea/qaplug_profiles.xml | 465 +++++++++++++++++
.idea/vcs.xml | 6 +
SpringBoot_Study.iml | 8 +
springboot_01_02_quickstart/.gitignore | 33 ++
springboot_01_02_quickstart/pom.xml | 41 ++
.../Springboot0102QuickstartApplication.java | 16 +
.../com/yv/controller/BookController.java | 21 +
.../src/main/resources/application.properties | 1 +
...ingboot0102QuickstartApplicationTests.java | 13 +
springboot_01_03_quickstart/.gitignore | 31 ++
springboot_01_03_quickstart/README.md | 4 +
springboot_01_03_quickstart/pom.xml | 59 +++
.../Springboot0103QuickstartApplication.java | 16 +
.../com/yv/controller/BookController.java | 21 +
.../src/main/resources/application.properties | 6 +
...ingboot0103QuickstartApplicationTests.java | 13 +
springboot_01_04_quickstart/pom.xml | 37 ++
.../src/main/java/com/yv/Application.java | 14 +
.../com/yv/controller/BookController.java | 21 +
.../src/main/webapp/WEB-INF/web.xml | 7 +
.../src/main/webapp/index.jsp | 5 +
.../target/classes/com/yv/Application.class | Bin 0 -> 701 bytes
.../com/yv/controller/BookController.class | Bin 0 -> 827 bytes
33 files changed, 1599 insertions(+)
create mode 100644 .idea/$PROJECT_FILE$
create mode 100644 .idea/.gitignore
create mode 100644 .idea/README.md
create mode 100644 .idea/compiler.xml
create mode 100644 .idea/encodings.xml
create mode 100644 .idea/intellij-javadocs-4.0.1.xml
create mode 100644 .idea/jarRepositories.xml
create mode 100644 .idea/jpa-buddy.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/qaplug_profiles.xml
create mode 100644 .idea/vcs.xml
create mode 100644 SpringBoot_Study.iml
create mode 100644 springboot_01_02_quickstart/.gitignore
create mode 100644 springboot_01_02_quickstart/pom.xml
create mode 100644 springboot_01_02_quickstart/src/main/java/com/yv/Springboot0102QuickstartApplication.java
create mode 100644 springboot_01_02_quickstart/src/main/java/com/yv/controller/BookController.java
create mode 100644 springboot_01_02_quickstart/src/main/resources/application.properties
create mode 100644 springboot_01_02_quickstart/src/test/java/com/yv/Springboot0102QuickstartApplicationTests.java
create mode 100644 springboot_01_03_quickstart/.gitignore
create mode 100644 springboot_01_03_quickstart/README.md
create mode 100644 springboot_01_03_quickstart/pom.xml
create mode 100644 springboot_01_03_quickstart/src/main/java/com/yv/Springboot0103QuickstartApplication.java
create mode 100644 springboot_01_03_quickstart/src/main/java/com/yv/controller/BookController.java
create mode 100644 springboot_01_03_quickstart/src/main/resources/application.properties
create mode 100644 springboot_01_03_quickstart/src/test/java/com/yv/Springboot0103QuickstartApplicationTests.java
create mode 100644 springboot_01_04_quickstart/pom.xml
create mode 100644 springboot_01_04_quickstart/src/main/java/com/yv/Application.java
create mode 100644 springboot_01_04_quickstart/src/main/java/com/yv/controller/BookController.java
create mode 100644 springboot_01_04_quickstart/src/main/webapp/WEB-INF/web.xml
create mode 100644 springboot_01_04_quickstart/src/main/webapp/index.jsp
create mode 100644 springboot_01_04_quickstart/target/classes/com/yv/Application.class
create mode 100644 springboot_01_04_quickstart/target/classes/com/yv/controller/BookController.class
diff --git a/.idea/$PROJECT_FILE$ b/.idea/$PROJECT_FILE$
new file mode 100644
index 0000000..c1ce1bb
--- /dev/null
+++ b/.idea/$PROJECT_FILE$
@@ -0,0 +1,468 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..35410ca
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/README.md b/.idea/README.md
new file mode 100644
index 0000000..b41a994
--- /dev/null
+++ b/.idea/README.md
@@ -0,0 +1,2 @@
+# Springboot_Study
+学习Springboot的测试项目
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..0741dbb
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..d3269d4
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/intellij-javadocs-4.0.1.xml b/.idea/intellij-javadocs-4.0.1.xml
new file mode 100644
index 0000000..90d3347
--- /dev/null
+++ b/.idea/intellij-javadocs-4.0.1.xml
@@ -0,0 +1,204 @@
+
+
+
+
+ UPDATE
+ false
+ true
+
+ FIELD
+ METHOD
+ TYPE
+
+
+ PUBLIC
+ PROTECTED
+ DEFAULT
+
+
+
+
+
+ ^.*(public|protected|private)*.+interface\s+\w+.*
+ /**\n
+ * The interface ${name}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+ */
+
+
+ ^.*(public|protected|private)*.+enum\s+\w+.*
+ /**\n
+ * The enum ${name}.\n
+ */
+
+
+ ^.*(public|protected|private)*.+class\s+\w+.*
+ /**\n
+ * The type ${name}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+ */
+
+
+ .+
+ /**\n
+ * The type ${name}.\n
+ */
+
+
+
+
+ .+
+ /**\n
+ * Instantiates a new ${name}.\n
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+
+
+ ^.*(public|protected|private)*\s*.*(\w(\s*<.+>)*)+\s+get\w+\s*\(.*\).+
+ /**\n
+ * Gets ${partName}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if isNotVoid>
+ *\n
+ * @return the ${partName}\n
+</#if>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+ ^.*(public|protected|private)*\s*.*(void|\w(\s*<.+>)*)+\s+set\w+\s*\(.*\).+
+ /**\n
+ * Sets ${partName}.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if isNotVoid>
+ *\n
+ * @return the ${partName}\n
+</#if>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+ ^.*((public\s+static)|(static\s+public))\s+void\s+main\s*\(\s*String\s*(\[\s*\]|\.\.\.)\s+\w+\s*\).+
+ /**\n
+ * The entry point of application.\n
+
+ <#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+ * @param ${element.parameterList.parameters[0].name} the input arguments\n
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+ .+
+ /**\n
+ * ${name}<#if isNotVoid> ${return}</#if>.\n
+<#if element.typeParameters?has_content> * \n
+</#if>
+<#list element.typeParameters as typeParameter>
+ * @param <${typeParameter.name}> the type parameter\n
+</#list>
+<#if element.parameterList.parameters?has_content>
+ *\n
+</#if>
+<#list element.parameterList.parameters as parameter>
+ * @param ${parameter.name} the ${paramNames[parameter.name]}\n
+</#list>
+<#if isNotVoid>
+ *\n
+ * @return the ${return}\n
+</#if>
+<#if element.throwsList.referenceElements?has_content>
+ *\n
+</#if>
+<#list element.throwsList.referenceElements as exception>
+ * @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
+</#list>
+ */
+
+
+
+
+ ^.*(public|protected|private)*.+static.*(\w\s\w)+.+
+ /**\n
+ * The constant ${element.getName()}.\n
+ */
+
+
+ ^.*(public|protected|private)*.*(\w\s\w)+.+
+ /**\n
+ <#if element.parent.isInterface()>
+ * The constant ${element.getName()}.\n
+<#else>
+ * The ${name}.\n
+</#if> */
+
+
+ .+
+ /**\n
+ <#if element.parent.isEnum()>
+ *${name} ${typeName}.\n
+<#else>
+ * The ${name}.\n
+</#if>*/
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..5a2f139
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jpa-buddy.xml b/.idea/jpa-buddy.xml
new file mode 100644
index 0000000..966d5f5
--- /dev/null
+++ b/.idea/jpa-buddy.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..b42ef6e
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..64e1a6e
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/qaplug_profiles.xml b/.idea/qaplug_profiles.xml
new file mode 100644
index 0000000..3dfd21f
--- /dev/null
+++ b/.idea/qaplug_profiles.xml
@@ -0,0 +1,465 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SpringBoot_Study.iml b/SpringBoot_Study.iml
new file mode 100644
index 0000000..9a5cfce
--- /dev/null
+++ b/SpringBoot_Study.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/springboot_01_02_quickstart/.gitignore b/springboot_01_02_quickstart/.gitignore
new file mode 100644
index 0000000..549e00a
--- /dev/null
+++ b/springboot_01_02_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_02_quickstart/pom.xml b/springboot_01_02_quickstart/pom.xml
new file mode 100644
index 0000000..1be36e7
--- /dev/null
+++ b/springboot_01_02_quickstart/pom.xml
@@ -0,0 +1,41 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.0.3
+
+
+ com.yv
+ springboot_01_02_quickstart
+ 0.0.1-SNAPSHOT
+ springboot_01_02_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_02_quickstart/src/main/java/com/yv/Springboot0102QuickstartApplication.java b/springboot_01_02_quickstart/src/main/java/com/yv/Springboot0102QuickstartApplication.java
new file mode 100644
index 0000000..d8999e8
--- /dev/null
+++ b/springboot_01_02_quickstart/src/main/java/com/yv/Springboot0102QuickstartApplication.java
@@ -0,0 +1,16 @@
+package com.yv;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @author YoVinchen
+ */
+@SpringBootApplication
+public class Springboot0102QuickstartApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Springboot0102QuickstartApplication.class, args);
+ }
+
+}
diff --git a/springboot_01_02_quickstart/src/main/java/com/yv/controller/BookController.java b/springboot_01_02_quickstart/src/main/java/com/yv/controller/BookController.java
new file mode 100644
index 0000000..f5fff70
--- /dev/null
+++ b/springboot_01_02_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("springBoot2 is running ......");
+ return "springBoot2 is running ......";
+ }
+}
diff --git a/springboot_01_02_quickstart/src/main/resources/application.properties b/springboot_01_02_quickstart/src/main/resources/application.properties
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/springboot_01_02_quickstart/src/main/resources/application.properties
@@ -0,0 +1 @@
+
diff --git a/springboot_01_02_quickstart/src/test/java/com/yv/Springboot0102QuickstartApplicationTests.java b/springboot_01_02_quickstart/src/test/java/com/yv/Springboot0102QuickstartApplicationTests.java
new file mode 100644
index 0000000..5d5db70
--- /dev/null
+++ b/springboot_01_02_quickstart/src/test/java/com/yv/Springboot0102QuickstartApplicationTests.java
@@ -0,0 +1,13 @@
+package com.yv;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class Springboot0102QuickstartApplicationTests {
+
+ @Test
+ void contextLoads() {
+ }
+
+}
diff --git a/springboot_01_03_quickstart/.gitignore b/springboot_01_03_quickstart/.gitignore
new file mode 100644
index 0000000..a2a3040
--- /dev/null
+++ b/springboot_01_03_quickstart/.gitignore
@@ -0,0 +1,31 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**
+!**/src/test/**
+
+### 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/
+
+### VS Code ###
+.vscode/
diff --git a/springboot_01_03_quickstart/README.md b/springboot_01_03_quickstart/README.md
new file mode 100644
index 0000000..c0d9ab2
--- /dev/null
+++ b/springboot_01_03_quickstart/README.md
@@ -0,0 +1,4 @@
+# 工程简介
+
+# 延伸阅读
+
diff --git a/springboot_01_03_quickstart/pom.xml b/springboot_01_03_quickstart/pom.xml
new file mode 100644
index 0000000..8de1116
--- /dev/null
+++ b/springboot_01_03_quickstart/pom.xml
@@ -0,0 +1,59 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.3.12.RELEASE
+
+
+ com.yv
+ springboot_01_03_quickstart
+ 0.0.1-SNAPSHOT
+ springboot_01_03_quickstart
+ springboot_01_03_quickstart
+
+
+ 1.8
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.junit.vintage
+ junit-vintage-engine
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+
+ 1.8
+ UTF-8
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/springboot_01_03_quickstart/src/main/java/com/yv/Springboot0103QuickstartApplication.java b/springboot_01_03_quickstart/src/main/java/com/yv/Springboot0103QuickstartApplication.java
new file mode 100644
index 0000000..11ca196
--- /dev/null
+++ b/springboot_01_03_quickstart/src/main/java/com/yv/Springboot0103QuickstartApplication.java
@@ -0,0 +1,16 @@
+package com.yv;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @author YoVinchen
+ */
+@SpringBootApplication
+public class Springboot0103QuickstartApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Springboot0103QuickstartApplication.class, args);
+ }
+
+}
diff --git a/springboot_01_03_quickstart/src/main/java/com/yv/controller/BookController.java b/springboot_01_03_quickstart/src/main/java/com/yv/controller/BookController.java
new file mode 100644
index 0000000..44cccf6
--- /dev/null
+++ b/springboot_01_03_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("springBoot3 is running ......");
+ return "springBoot3 is running ......";
+ }
+}
diff --git a/springboot_01_03_quickstart/src/main/resources/application.properties b/springboot_01_03_quickstart/src/main/resources/application.properties
new file mode 100644
index 0000000..27bb88a
--- /dev/null
+++ b/springboot_01_03_quickstart/src/main/resources/application.properties
@@ -0,0 +1,6 @@
+# 应用名称
+spring.application.name=springboot_01_03_quickstart
+# 应用服务 WEB 访问端口
+server.port=8080
+
+
diff --git a/springboot_01_03_quickstart/src/test/java/com/yv/Springboot0103QuickstartApplicationTests.java b/springboot_01_03_quickstart/src/test/java/com/yv/Springboot0103QuickstartApplicationTests.java
new file mode 100644
index 0000000..f44a73a
--- /dev/null
+++ b/springboot_01_03_quickstart/src/test/java/com/yv/Springboot0103QuickstartApplicationTests.java
@@ -0,0 +1,13 @@
+package com.yv;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class Springboot0103QuickstartApplicationTests {
+
+ @Test
+ void contextLoads() {
+ }
+
+}
diff --git a/springboot_01_04_quickstart/pom.xml b/springboot_01_04_quickstart/pom.xml
new file mode 100644
index 0000000..e0c6f1a
--- /dev/null
+++ b/springboot_01_04_quickstart/pom.xml
@@ -0,0 +1,37 @@
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.0.3
+
+
+ org.example
+ springboot_01_04_quickstart
+ war
+ 1.0-SNAPSHOT
+ springboot_01_04_quickstart Maven Webapp
+ http://maven.apache.org
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ springboot_01_04_quickstart
+
+
diff --git a/springboot_01_04_quickstart/src/main/java/com/yv/Application.java b/springboot_01_04_quickstart/src/main/java/com/yv/Application.java
new file mode 100644
index 0000000..40b1d00
--- /dev/null
+++ b/springboot_01_04_quickstart/src/main/java/com/yv/Application.java
@@ -0,0 +1,14 @@
+package com.yv;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @author YoVinchen
+ */
+@SpringBootApplication
+public class Application {
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+}
diff --git a/springboot_01_04_quickstart/src/main/java/com/yv/controller/BookController.java b/springboot_01_04_quickstart/src/main/java/com/yv/controller/BookController.java
new file mode 100644
index 0000000..6a57144
--- /dev/null
+++ b/springboot_01_04_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("springBoot4 is running ......");
+ return "springBoot4 is running ......";
+ }
+}
diff --git a/springboot_01_04_quickstart/src/main/webapp/WEB-INF/web.xml b/springboot_01_04_quickstart/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..9f88c1f
--- /dev/null
+++ b/springboot_01_04_quickstart/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,7 @@
+
+
+
+ Archetype Created Web Application
+
diff --git a/springboot_01_04_quickstart/src/main/webapp/index.jsp b/springboot_01_04_quickstart/src/main/webapp/index.jsp
new file mode 100644
index 0000000..c38169b
--- /dev/null
+++ b/springboot_01_04_quickstart/src/main/webapp/index.jsp
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git a/springboot_01_04_quickstart/target/classes/com/yv/Application.class b/springboot_01_04_quickstart/target/classes/com/yv/Application.class
new file mode 100644
index 0000000000000000000000000000000000000000..168a4eb62f5a84d6e4a144460f87c0f0f04bc6af
GIT binary patch
literal 701
zcmZuvOHbQC5dJnKIHW0r@G7MoxP=_Lw_XBBB@!p|P*bG`PHVH61$#GIuYvxoo
z1Nc#hS%VZy#FA$;uWx3)o#&UQ{{Z%}-9im>0qSiuFwfAr7Po?@LMQw*x|XqHnBP-c
zxdVo|-tIU+lc5`%jQ_pmKPQt^#lk70TWH}^fOZ?7vB=OjHsSfiDxF+fk;yw_Z+K*k
z`W+if80J*kCuDg&Z60+vn0sp@~I07FK!t-C1{6DrZ;?Kkn&8#}pSfq3V?x
zVdD8%x+`;WCOkV%T1sq4Cq>>7)`8WgZy9UZxFGhYS=90S8S2?ZNCAp
Df<3T)
literal 0
HcmV?d00001
diff --git a/springboot_01_04_quickstart/target/classes/com/yv/controller/BookController.class b/springboot_01_04_quickstart/target/classes/com/yv/controller/BookController.class
new file mode 100644
index 0000000000000000000000000000000000000000..c7fc409a09d844d4d8e9942c42748f95a92f3e56
GIT binary patch
literal 827
zcmb7COK%e~5dNGd*)~Z@*|b1`LRub5IMkOOKmjCL34|0LYN}i~c{e7w-L-?)n=1bb
zIDo`~AHa`7j5k$F1rp%HjOO)yGvoRGpbluyQD-f+s?c`K#zq
z#*U%-P-*2JGc0tv!zCklvtfk$wOCZ5imsOXqj2&mT`2Drq~
zj!nvEQyv@btVt4SIdLBCotg~gJu{LF&A!s|Wu8XT9*8I*PuMrHNQS~HZ=X2J?w!gQ
zw)%eq?oo$h>2_z&M+~c-?(Z!!tncUAsZ3Cbez|>D*ZcxmV+${3jh1`VqhE%sj
N`W8iRzX8i|=O;Lo&~E?$
literal 0
HcmV?d00001