From 2a2ba4721e370184e22dfbaf37d4125696fccde2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=A4=A7=E4=BB=99=E4=B8=B6?= Date: Fri, 30 Jun 2023 01:00:43 +0800 Subject: [PATCH] xxxx --- .gitignore | 21 ++++++++++++++++++ pom.xml | 22 +++++++++++++++++++ src/main/java/xxx/XxxApp.java | 16 ++++++++++++++ .../java/xxx/controller/XxxController.java | 18 +++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/xxx/XxxApp.java create mode 100644 src/main/java/xxx/controller/XxxController.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8450319 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Created by .ignore support plugin (hsz.mobi) +### Example user template template +### Example user template + +# IntelliJ project files +.idea +*.iml +out +gen +### Maven template +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3fad471 --- /dev/null +++ b/pom.xml @@ -0,0 +1,22 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.3.12.RELEASE + + + xxxx + xxx + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + \ No newline at end of file diff --git a/src/main/java/xxx/XxxApp.java b/src/main/java/xxx/XxxApp.java new file mode 100644 index 0000000..02c5f29 --- /dev/null +++ b/src/main/java/xxx/XxxApp.java @@ -0,0 +1,16 @@ +package xxx; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author 郑大仙丶 + * @version V1.0.0 + */ +@SpringBootApplication +public class XxxApp { + + public static void main(String[] args) { + SpringApplication.run(XxxApp.class,args); + } +} diff --git a/src/main/java/xxx/controller/XxxController.java b/src/main/java/xxx/controller/XxxController.java new file mode 100644 index 0000000..408b37e --- /dev/null +++ b/src/main/java/xxx/controller/XxxController.java @@ -0,0 +1,18 @@ +package xxx.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author 郑大仙丶 + * @version V1.0.0 + */ +@RestController +public class XxxController { + + + @GetMapping("/test") + public String test(){ + return "test!"; + } +}