diff --git a/pom.xml b/pom.xml index d029f23..09942da 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,7 @@ api-passenger internal-common service-verificationcode + service-passenger-user diff --git a/service-passenger-user/pom.xml b/service-passenger-user/pom.xml new file mode 100644 index 0000000..1660ac7 --- /dev/null +++ b/service-passenger-user/pom.xml @@ -0,0 +1,29 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + com.mashibing + service-passenger-user + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + \ No newline at end of file diff --git a/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.java b/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.java new file mode 100644 index 0000000..c508634 --- /dev/null +++ b/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.java @@ -0,0 +1,13 @@ +package com.mashibing.servicepassengeruser; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ServicePassengerUserApplication { + + public static void main(String[] args) { + SpringApplication.run(ServicePassengerUserApplication.class, args); + } + +} diff --git a/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/TestController.java b/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/TestController.java new file mode 100644 index 0000000..1642e12 --- /dev/null +++ b/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/TestController.java @@ -0,0 +1,14 @@ +package com.mashibing.servicepassengeruser.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 "service-passenger-user"; + } + +} diff --git a/service-passenger-user/src/main/resources/application.yml b/service-passenger-user/src/main/resources/application.yml new file mode 100644 index 0000000..94b866f --- /dev/null +++ b/service-passenger-user/src/main/resources/application.yml @@ -0,0 +1,9 @@ +server: + port: 8083 +spring: + application: + name: service-passenger-user + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848