diff --git a/service/pom.xml b/service/pom.xml index f937ace..6e60ee5 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -12,6 +12,7 @@ 服务模块聚合项目 service-verification-code + service-passenger-user service diff --git a/service/service-passenger-user/pom.xml b/service/service-passenger-user/pom.xml new file mode 100644 index 0000000..dbe2cc9 --- /dev/null +++ b/service/service-passenger-user/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + + com.greateme + service + 1.0-SNAPSHOT + + jar + 乘客用户服务模块 + + service-passenger-user + + + 11 + 11 + UTF-8 + + + + + + org.springframework.boot + spring-boot-starter-web + + + + + org.springframework.boot + spring-boot-actuator + + + + org.springframework.cloud + spring-cloud-starter-bootstrap + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + org.springframework.boot + spring-boot-starter-data-redis + + + + + com.greateme + common-entity + + + + + com.greateme + verification-code-client + + + + + com.greateme + common-annotation + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + + \ No newline at end of file diff --git a/service/service-passenger-user/src/main/java/com/greateme/user/PassengerUserApplication.java b/service/service-passenger-user/src/main/java/com/greateme/user/PassengerUserApplication.java new file mode 100644 index 0000000..a59ccba --- /dev/null +++ b/service/service-passenger-user/src/main/java/com/greateme/user/PassengerUserApplication.java @@ -0,0 +1,24 @@ +package com.greateme.user; + +import com.greateme.springboot.TaxiSpringBootApplication; +import org.springframework.boot.SpringApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; + +/** + *

+ * 乘客用户服务的启动类 + *

+ * + * @author XiaoHH + * @version 1.0.0 + * @date 2023-07-06 星期四 13:46:52 + * @file PassengerUserApplication.java + */ +@EnableDiscoveryClient +@TaxiSpringBootApplication +public class PassengerUserApplication { + + public static void main(String[] args) { + SpringApplication.run(PassengerUserApplication.class, args); + } +} diff --git a/service/service-passenger-user/src/main/resources/bootstrap-dev.yaml b/service/service-passenger-user/src/main/resources/bootstrap-dev.yaml new file mode 100644 index 0000000..727027e --- /dev/null +++ b/service/service-passenger-user/src/main/resources/bootstrap-dev.yaml @@ -0,0 +1,10 @@ +spring: + cloud: + nacos: + discovery: + server-addr: 192.168.3.231:8848 + namespace: taxi-dev + config: + server-addr: 192.168.3.231:8848 + namespace: taxi-dev + file-extension: yaml diff --git a/service/service-passenger-user/src/main/resources/bootstrap.yaml b/service/service-passenger-user/src/main/resources/bootstrap.yaml new file mode 100644 index 0000000..9556df7 --- /dev/null +++ b/service/service-passenger-user/src/main/resources/bootstrap.yaml @@ -0,0 +1,8 @@ +server: + port: 10020 + +spring: + application: + name: service-passenger-user + profiles: + active: dev