From df703f126526264d804df439c24dcd0870e88309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E6=AD=AA?= Date: Tue, 26 Oct 2021 21:17:31 +0800 Subject: [PATCH] austin start --- pom.xml | 56 +++++++++++++++++++ web/pom.xml | 46 +++++++++++++++ .../com/java3y/austin/AustinApplication.java | 23 ++++++++ 3 files changed, 125 insertions(+) create mode 100644 pom.xml create mode 100644 web/pom.xml create mode 100644 web/src/main/java/com/java3y/austin/AustinApplication.java 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); + } + +}