commit 61d42caf5c3e8c9da1a2317db899b65d2bb8895a Author: msb_12211 Date: Wed Apr 29 17:06:44 2026 +0800 项目搭建 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/api-passenger/pom.xml b/api-passenger/pom.xml new file mode 100644 index 0000000..269f174 --- /dev/null +++ b/api-passenger/pom.xml @@ -0,0 +1,21 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + api-passenger + + + + org.springframework.boot + spring-boot-starter-web + + + + \ No newline at end of file diff --git a/api-passenger/src/main/java/com/mashibing/apipassenger/ApiPassengerApplication.java b/api-passenger/src/main/java/com/mashibing/apipassenger/ApiPassengerApplication.java new file mode 100644 index 0000000..5af963e --- /dev/null +++ b/api-passenger/src/main/java/com/mashibing/apipassenger/ApiPassengerApplication.java @@ -0,0 +1,11 @@ +package com.mashibing.apipassenger; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ApiPassengerApplication { + public static void main(String[] args) { + SpringApplication.run(ApiPassengerApplication.class, args); + } +} diff --git a/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TestController.java b/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TestController.java new file mode 100644 index 0000000..6c4c4e5 --- /dev/null +++ b/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TestController.java @@ -0,0 +1,13 @@ +package com.mashibing.apipassenger.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @GetMapping("/test") + public String test(){ + return "test api passenger"; + } +} diff --git a/api-passenger/src/main/resources/application.yml b/api-passenger/src/main/resources/application.yml new file mode 100644 index 0000000..54b155f --- /dev/null +++ b/api-passenger/src/main/resources/application.yml @@ -0,0 +1,2 @@ +server: + port: 8081 \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d07ac8f --- /dev/null +++ b/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.4.13 + + com.mashibing + online-taxi-public + 1.0-SNAPSHOT + + api-passenger + + pom + + \ No newline at end of file