diff --git a/springboot-helloworld-demo/pom.xml b/springboot-helloworld-demo/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..da497525a8d957132fda1a213b26262fd22c53b1 --- /dev/null +++ b/springboot-helloworld-demo/pom.xml @@ -0,0 +1,52 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.6.2 + + + com.cunyu + springboot-helloworld-demo + 0.0.1-SNAPSHOT + springboot-helloworld-demo + springboot-helloworld-demo + + 1.8 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-devtools + runtime + true + + + org.springframework.boot + spring-boot-configuration-processor + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/springboot-helloworld-demo/src/main/java/com/cunyu/springboothelloworlddemo/SpringbootHelloworldDemoApplication.java b/springboot-helloworld-demo/src/main/java/com/cunyu/springboothelloworlddemo/SpringbootHelloworldDemoApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..d17b0a545926d372e5363f846ae08afa16e8f18e --- /dev/null +++ b/springboot-helloworld-demo/src/main/java/com/cunyu/springboothelloworlddemo/SpringbootHelloworldDemoApplication.java @@ -0,0 +1,13 @@ +package com.cunyu.springboothelloworlddemo; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringbootHelloworldDemoApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringbootHelloworldDemoApplication.class, args); + } + +} diff --git a/springboot-helloworld-demo/src/main/java/com/cunyu/springboothelloworlddemo/controller/HelloWorldController.java b/springboot-helloworld-demo/src/main/java/com/cunyu/springboothelloworlddemo/controller/HelloWorldController.java new file mode 100644 index 0000000000000000000000000000000000000000..77e7dd61f9d55e48aa7645b808ba4eaa7b33f532 --- /dev/null +++ b/springboot-helloworld-demo/src/main/java/com/cunyu/springboothelloworlddemo/controller/HelloWorldController.java @@ -0,0 +1,28 @@ +package com.cunyu.springboothelloworlddemo.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * Created with IntelliJ IDEA. + * + * @author : 村雨遥 + * @version : 1.0 + * @project : springboot-helloworld-demo + * @package : com.cunyu.springboothelloworlddemo.controller + * @className : HelloWorldController + * @createTime : 2022/1/12 8:57 + * @email : 747731461@qq.com + * @微信 : cunyu1024 + * @公众号 : 村雨遥 + * @网站 : https://cunyu1943.github.io + * @description : + */ + +@RestController +public class HelloWorldController { + @GetMapping("/hello") + public String hello() { + return "Hello World!"; + } +} diff --git a/springboot-helloworld-demo/src/main/resources/application.yml b/springboot-helloworld-demo/src/main/resources/application.yml new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/springboot-helloworld-demo/src/main/resources/application.yml @@ -0,0 +1 @@ + diff --git a/springboot-helloworld-demo/src/test/java/com/cunyu/springboothelloworlddemo/SpringbootHelloworldDemoApplicationTests.java b/springboot-helloworld-demo/src/test/java/com/cunyu/springboothelloworlddemo/SpringbootHelloworldDemoApplicationTests.java new file mode 100644 index 0000000000000000000000000000000000000000..771f808aa6b831bbc90dc20f923eafb9794af4bb --- /dev/null +++ b/springboot-helloworld-demo/src/test/java/com/cunyu/springboothelloworlddemo/SpringbootHelloworldDemoApplicationTests.java @@ -0,0 +1,13 @@ +package com.cunyu.springboothelloworlddemo; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SpringbootHelloworldDemoApplicationTests { + + @Test + void contextLoads() { + } + +}