验证码模块

main
XiaoHH 2 years ago
parent 9d87513915
commit 9f0532f523

@ -9,17 +9,10 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<description>乘客端的api模块</description> <description>乘客端的api模块</description>
<packaging>jar</packaging> <packaging>jar</packaging>
<artifactId>api-passenger</artifactId> <artifactId>api-passenger</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies> <dependencies>
<!-- Spring Web --> <!-- Spring Web -->
<dependency> <dependency>

@ -1,5 +1,5 @@
server: server:
port: 8080 port: 10000
spring: spring:
application: application:

@ -11,6 +11,7 @@
<modules> <modules>
<module>api</module> <module>api</module>
<module>common</module> <module>common</module>
<module>service</module>
</modules> </modules>
<description>马士兵的滴约打车项目</description> <description>马士兵的滴约打车项目</description>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.greateme</groupId>
<artifactId>online-taxi-public</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<packaging>pom</packaging>
<description>服务模块聚合项目</description>
<modules>
<module>service-verification-code</module>
</modules>
<artifactId>service</artifactId>
</project>

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.greateme</groupId>
<artifactId>service</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>service-verification-code</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- Spring Web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 健康检测 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<!-- nacos配置中心 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- nacos注册中心 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- util 工具模块 -->
<dependency>
<groupId>com.greateme</groupId>
<artifactId>common-entity</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

@ -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;
/**
* <p>
*
* </p>
*
* @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);
}
}

@ -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

@ -0,0 +1,8 @@
server:
port: 10010
spring:
application:
name: service-verification-code
profiles:
active: dev
Loading…
Cancel
Save