From aa208823191a7341f067acebce618ff998c90da8 Mon Sep 17 00:00:00 2001 From: zeiss Date: Sun, 31 Mar 2024 17:11:29 +0800 Subject: [PATCH] test --- .idea/.gitignore | 10 +++ .idea/compiler.xml | 19 ++++++ .idea/encodings.xml | 6 ++ .idea/jarRepositories.xml | 25 +++++++ .idea/misc.xml | 17 +++++ .idea/runConfigurations.xml | 10 +++ .idea/vcs.xml | 6 ++ pom.xml | 61 ++++++++++++++++++ .../com/example/demo/DemoApplication.java | 15 +++++ src/main/java/com/test/HelloController.java | 17 +++++ src/main/resources/application.properties | 3 + .../example/demo/DemoApplicationTests.java | 13 ++++ target/classes/application.properties | 3 + .../com/example/demo/DemoApplication.class | Bin 0 -> 823 bytes target/classes/com/test/HelloController.class | Bin 0 -> 980 bytes .../example/demo/DemoApplicationTests.class | Bin 0 -> 531 bytes 16 files changed, 205 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 .idea/vcs.xml create mode 100644 pom.xml create mode 100644 src/main/java/com/example/demo/DemoApplication.java create mode 100644 src/main/java/com/test/HelloController.java create mode 100644 src/main/resources/application.properties create mode 100644 src/test/java/com/example/demo/DemoApplicationTests.java create mode 100644 target/classes/application.properties create mode 100644 target/classes/com/example/demo/DemoApplication.class create mode 100644 target/classes/com/test/HelloController.class create mode 100644 target/test-classes/com/example/demo/DemoApplicationTests.class diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..11bd5c0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Zeppelin ignored files +/ZeppelinRemoteNotebooks/ diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..1531ea3 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..63e9001 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..22e83c6 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..010c400 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ 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/pom.xml b/pom.xml new file mode 100644 index 0000000..32f1673 --- /dev/null +++ b/pom.xml @@ -0,0 +1,61 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.7.18 + + + com.example + demo + 0.0.1-SNAPSHOT + demo + Demo project for Spring Boot + + 1.8 + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-web + + + org.apache.logging.log4j + log4j-to-slf4j + 2.20.0 + + + org.springframework + spring-web + 5.3.31 + + + org.projectlombok + lombok + RELEASE + compile + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java new file mode 100644 index 0000000..e8aa280 --- /dev/null +++ b/src/main/java/com/example/demo/DemoApplication.java @@ -0,0 +1,15 @@ +package com.example.demo; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.ComponentScan; + +@SpringBootApplication +@ComponentScan(basePackages = "com") +public class DemoApplication { + + public static void main(String[] args) { + SpringApplication.run(DemoApplication.class, args); + } + +} diff --git a/src/main/java/com/test/HelloController.java b/src/main/java/com/test/HelloController.java new file mode 100644 index 0000000..ad5bc6a --- /dev/null +++ b/src/main/java/com/test/HelloController.java @@ -0,0 +1,17 @@ +package com.test; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@Slf4j +@RestController +@RequestMapping("/v1") +public class HelloController { + @GetMapping("hello") + public String SayHello() { + log.info("SayHello: hello world!"); + return "hello world from demo test!"; + } +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..d449906 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,3 @@ +spring.application.name=demo +spring.profiles.active=dev +server.port=8081 diff --git a/src/test/java/com/example/demo/DemoApplicationTests.java b/src/test/java/com/example/demo/DemoApplicationTests.java new file mode 100644 index 0000000..2778a6a --- /dev/null +++ b/src/test/java/com/example/demo/DemoApplicationTests.java @@ -0,0 +1,13 @@ +package com.example.demo; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class DemoApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/target/classes/application.properties b/target/classes/application.properties new file mode 100644 index 0000000..d449906 --- /dev/null +++ b/target/classes/application.properties @@ -0,0 +1,3 @@ +spring.application.name=demo +spring.profiles.active=dev +server.port=8081 diff --git a/target/classes/com/example/demo/DemoApplication.class b/target/classes/com/example/demo/DemoApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..7e475ced886804e80385d37728e2323fa8294d13 GIT binary patch literal 823 zcmah{OK;RL5dOT6W(k3oZ7Gyz;k4aDeL=k}s#F$n3Q)0VIrQXY-PCPjM~+kaw>W_~ z@B{c!h;dr63tAvnW;CyFWD&Xl1u zHZ#ev8Y?Z|)I}ogdy(Yi>BlA&`BYft?JH-;ov4c8X`GsZ%L`GIx#Tlh82*yPL0RT1 z6;2sFBIH6S&9FH*iciJ4;JMHlpE#>@HflNxn-SLfk}$*CYw1qR>`+)yNGB~Nh7(iU zRK8Mvx{W{j?fMoBTkmS^R3WFTQZ)5}*2XpSQ2l;vY{sk74{+>ZKN@?+6Js0~wKJ*F z$11C>5Pc;^a1K9j5;?aER0M{49VyMon$a4xey$zH3D<2CV z3qQb*GFD#@kco+Ix~i+IPM@keKYo7u4xomE3{tp}MglieC}mN`trTu2aVLX4+)d&h zLsV&(q0rR6>jbJ_8#qnvy27tBBo3t~%~Q&$RND-(hVBW5wWjpMtMRZS{MWprC_=?u zuG-v}_C5>7%&80*cA8y1bc_g$^Fk=48`?9zRx11;)#B%2l%ZIuHV1sd9mPG@X&GO7 zE>YM%8GA+!MOy}vu%CIJHrz<<5p-?Jd1O=jJ|BuR?Z0)-M91k!ujlZ2uJc@&mwYsu zLdGXtjfr*q)be3S9d^~M&rC~?{jNBYwyWX_-vdjJ;qgEJdO}VA(eD40z8h2Zf^^iG zJjx-9Tn=eu7&d-S?nx@I~%eP0htJu%cJyNEKw*58(r#Qhu| z;332MVjIVuf#@0vt!jicA-z7$@M`7a@~mVwS1XQq*J%HoA?*q?6&l0da&<%TAgEU_ z>XF2oATX literal 0 HcmV?d00001 diff --git a/target/test-classes/com/example/demo/DemoApplicationTests.class b/target/test-classes/com/example/demo/DemoApplicationTests.class new file mode 100644 index 0000000000000000000000000000000000000000..7e21efaa90e5644031f6d79dd9b196d1afb5d050 GIT binary patch literal 531 zcma)2yH3L}6g^HKfi}=mSSm5FAYKw)5DN&YfS4kXXw}_GO>s%=$Z?>*#e~Gb2k=pd zo3sNG3|R7goO{o?*Z%x^{{V1;trlw7@X_e>+VtI40~a0QZDBr%@WBcGBx~~%pl7W6$__~9?9J0XAD7X zw3Ble8ZjYa|Gv;prE;utMXCd>jjQ^pwjCNf<+FmeBbzBFEf<;Mr4%W(hNiHwyiw(H z{lCT?&&0D}IIVQ@%ql&7up*T&#y;`L7{?t+@#RK*San