diff --git a/api/api-passenger/pom.xml b/api/api-passenger/pom.xml index 0c697ea..0c70ab5 100644 --- a/api/api-passenger/pom.xml +++ b/api/api-passenger/pom.xml @@ -9,17 +9,10 @@ 1.0-SNAPSHOT 乘客端的api模块 - jar api-passenger - - 11 - 11 - UTF-8 - - diff --git a/api/api-passenger/src/main/resources/bootstrap.yaml b/api/api-passenger/src/main/resources/bootstrap.yaml index baec73e..966c96f 100644 --- a/api/api-passenger/src/main/resources/bootstrap.yaml +++ b/api/api-passenger/src/main/resources/bootstrap.yaml @@ -1,5 +1,5 @@ server: - port: 8080 + port: 10000 spring: application: diff --git a/pom.xml b/pom.xml index c7a745f..faa77a4 100644 --- a/pom.xml +++ b/pom.xml @@ -11,6 +11,7 @@ api common + service 马士兵的滴约打车项目 diff --git a/service/pom.xml b/service/pom.xml new file mode 100644 index 0000000..f937ace --- /dev/null +++ b/service/pom.xml @@ -0,0 +1,19 @@ + + + 4.0.0 + + com.greateme + online-taxi-public + 1.0-SNAPSHOT + + pom + 服务模块聚合项目 + + service-verification-code + + + service + + \ No newline at end of file diff --git a/service/service-verification-code/pom.xml b/service/service-verification-code/pom.xml new file mode 100644 index 0000000..7b31ff0 --- /dev/null +++ b/service/service-verification-code/pom.xml @@ -0,0 +1,66 @@ + + + 4.0.0 + + com.greateme + service + 1.0-SNAPSHOT + + + service-verification-code + + + 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 + + + + + com.greateme + common-entity + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + \ No newline at end of file diff --git a/service/service-verification-code/src/main/java/com/greateme/verification/VerificationCodeApplication.java b/service/service-verification-code/src/main/java/com/greateme/verification/VerificationCodeApplication.java new file mode 100644 index 0000000..09116cf --- /dev/null +++ b/service/service-verification-code/src/main/java/com/greateme/verification/VerificationCodeApplication.java @@ -0,0 +1,23 @@ +package com.greateme.verification; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; + +/** + *

+ * 验证码服务的启动类 + *

+ * + * @author XiaoHH + * @version 1.0.0 + * @date 2023-05-31 星期三 07:17:23 + * @file VerificationCodeApplication.java + */ +@EnableDiscoveryClient +@SpringBootApplication +public class VerificationCodeApplication { + public static void main(String[] args) { + SpringApplication.run(VerificationCodeApplication.class, args); + } +} diff --git a/service/service-verification-code/src/main/resources/bootstrap-dev.yaml b/service/service-verification-code/src/main/resources/bootstrap-dev.yaml new file mode 100644 index 0000000..c57e8ec --- /dev/null +++ b/service/service-verification-code/src/main/resources/bootstrap-dev.yaml @@ -0,0 +1,9 @@ +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 diff --git a/service/service-verification-code/src/main/resources/bootstrap.yaml b/service/service-verification-code/src/main/resources/bootstrap.yaml new file mode 100644 index 0000000..b0e6e65 --- /dev/null +++ b/service/service-verification-code/src/main/resources/bootstrap.yaml @@ -0,0 +1,8 @@ +server: + port: 10010 + +spring: + application: + name: service-verification-code + profiles: + active: dev