commit 45fba9253843b3818054886353a0a8e3f1d54eec Author: educoder Date: Thu Nov 3 15:30:15 2022 +0800 auto diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..50bafd8 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..cd1fc48 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# springboot_demo + +springboot_demo \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7782742 --- /dev/null +++ b/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.0.3.RELEASE + + + com.example + springboot-helloworld + 0.0.1-SNAPSHOT + springboot-helloworld + springboot-helloworld + + + org.springframework.boot + spring-boot-starter-web + + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..0976ea0 Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/main/.DS_Store b/src/main/.DS_Store new file mode 100644 index 0000000..896cb53 Binary files /dev/null and b/src/main/.DS_Store differ diff --git a/src/main/java/.DS_Store b/src/main/java/.DS_Store new file mode 100644 index 0000000..6a0b711 Binary files /dev/null and b/src/main/java/.DS_Store differ diff --git a/src/main/java/com/.DS_Store b/src/main/java/com/.DS_Store new file mode 100644 index 0000000..954372d Binary files /dev/null and b/src/main/java/com/.DS_Store differ diff --git a/src/main/java/com/example/springboothelloworld/HelloController.java b/src/main/java/com/example/springboothelloworld/HelloController.java new file mode 100644 index 0000000..3d61c13 --- /dev/null +++ b/src/main/java/com/example/springboothelloworld/HelloController.java @@ -0,0 +1,19 @@ +package com.example.springboothelloworld; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class HelloController { + + @GetMapping("/") + public String index() { + return "Greetings from Spring Boot!"; + } + @GetMapping("/healthcheck") + public String healthcheck() { + return "Greetings from Spring Boot!"; + } + +} + diff --git a/src/main/java/com/example/springboothelloworld/SpringbootHelloworldApplication.java b/src/main/java/com/example/springboothelloworld/SpringbootHelloworldApplication.java new file mode 100644 index 0000000..505712a --- /dev/null +++ b/src/main/java/com/example/springboothelloworld/SpringbootHelloworldApplication.java @@ -0,0 +1,13 @@ +package com.example.springboothelloworld; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringbootHelloworldApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringbootHelloworldApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/src/test/java/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.java b/src/test/java/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.java new file mode 100644 index 0000000..6646767 --- /dev/null +++ b/src/test/java/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.java @@ -0,0 +1,13 @@ +package com.example.springboothelloworld; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SpringbootHelloworldApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/target/classes/application.properties b/target/classes/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/target/classes/application.properties @@ -0,0 +1 @@ + diff --git a/target/classes/com/example/springboothelloworld/HelloController.class b/target/classes/com/example/springboothelloworld/HelloController.class new file mode 100644 index 0000000..5420e83 Binary files /dev/null and b/target/classes/com/example/springboothelloworld/HelloController.class differ diff --git a/target/classes/com/example/springboothelloworld/SpringbootHelloworldApplication.class b/target/classes/com/example/springboothelloworld/SpringbootHelloworldApplication.class new file mode 100644 index 0000000..b1fece3 Binary files /dev/null and b/target/classes/com/example/springboothelloworld/SpringbootHelloworldApplication.class differ diff --git a/target/test-classes/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.class b/target/test-classes/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.class new file mode 100644 index 0000000..2377d7c Binary files /dev/null and b/target/test-classes/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.class differ