parent
3ba44be9c7
commit
1c0b975baf
@ -0,0 +1,87 @@
|
||||
<?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>
|
||||
<packaging>jar</packaging>
|
||||
<description>乘客用户服务模块</description>
|
||||
|
||||
<artifactId>service-passenger-user</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>
|
||||
|
||||
<!-- 连接redis的依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- util 工具模块 -->
|
||||
<dependency>
|
||||
<groupId>com.greateme</groupId>
|
||||
<artifactId>common-entity</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 验证码模块的远程调用 -->
|
||||
<dependency>
|
||||
<groupId>com.greateme</groupId>
|
||||
<artifactId>verification-code-client</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 公共的注解模块 -->
|
||||
<dependency>
|
||||
<groupId>com.greateme</groupId>
|
||||
<artifactId>common-annotation</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -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;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 乘客用户服务的启动类
|
||||
* </p>
|
||||
*
|
||||
* @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);
|
||||
}
|
||||
}
|
@ -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
|
@ -0,0 +1,8 @@
|
||||
server:
|
||||
port: 10020
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: service-passenger-user
|
||||
profiles:
|
||||
active: dev
|
Loading…
Reference in new issue