commit df703f126526264d804df439c24dcd0870e88309 Author: 三歪 Date: Tue Oct 26 21:17:31 2021 +0800 austin start diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d622bf8 --- /dev/null +++ b/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + pom + + + web + + + + org.springframework.boot + spring-boot-starter-parent + 2.5.6 + + + + com.java3y.austin + austin + 0.0.2 + austin + austin-message + + + 1.8 + + + + + + + mysql + mysql-connector-java + 5.1.35 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/web/pom.xml b/web/pom.xml new file mode 100644 index 0000000..0aa61d7 --- /dev/null +++ b/web/pom.xml @@ -0,0 +1,46 @@ + + + + austin + com.java3y.austin + 0.0.2 + + 4.0.0 + + web + + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + org.projectlombok + lombok + + + + org.springframework.boot + spring-boot-starter-web + + + + + mysql + mysql-connector-java + + + + + \ No newline at end of file diff --git a/web/src/main/java/com/java3y/austin/AustinApplication.java b/web/src/main/java/com/java3y/austin/AustinApplication.java new file mode 100644 index 0000000..a8b3949 --- /dev/null +++ b/web/src/main/java/com/java3y/austin/AustinApplication.java @@ -0,0 +1,23 @@ +package com.java3y.austin; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + +@SpringBootApplication +@RestController +public class AustinApplication { + + public static void main(String[] args) { + SpringApplication.run(AustinApplication.class, args); + } + + @GetMapping("/hello") + public String hello(@RequestParam(value = "name", defaultValue = "World") String name) { + return String.format("Hello %s!", name); + } + +}