Browse Source

author : liuliu
description : 新建客户模块

yf1800 4 years ago
parent
commit
86be11051a

+ 19 - 0
modules/fmp-customer/pom.xml

@@ -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">
+    <parent>
+        <artifactId>modules</artifactId>
+        <groupId>com.blue</groupId>
+        <version>1.0</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>fmp-customer</artifactId>
+
+    <properties>
+        <maven.compiler.source>16</maven.compiler.source>
+        <maven.compiler.target>16</maven.compiler.target>
+    </properties>
+
+</project>

+ 21 - 0
modules/fmp-customer/src/main/java/com/fire/customer/CustomerApplication.java

@@ -0,0 +1,21 @@
+package com.fire.customer;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+
+/**
+ * @author: liuliu
+ * @ClassName: CustomerApplication
+ * @Description: TODO  客户启动项
+ * @date: 2021-05-10 18:51
+ */
+@SpringBootApplication
+@EnableDiscoveryClient
+public class CustomerApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(CustomerApplication.class, args);
+    }
+
+}

+ 15 - 0
modules/fmp-customer/src/main/resources/bootstrap.yml

@@ -0,0 +1,15 @@
+server:
+  port: 8084
+spring:
+  application:
+    name: make-order
+  cloud:
+    nacos:
+      config:
+        server-addr: 192.168.101.104:8848
+        file-extension: yaml
+        namespace: fire
+      discovery:
+        server-addr: 192.168.101.104:8848
+        namespace: fire
+        service: fmp-customer

+ 1 - 0
modules/pom.xml

@@ -14,6 +14,7 @@
     <modules>
         <module>make-order</module>
         <module>admin</module>
+        <module>fmp-customer</module>
     </modules>
 
     <dependencies>