Răsfoiți Sursa

添加上了apply代码

liying 1 lună în urmă
părinte
comite
6b057a5731

+ 1 - 0
siwei-modules/pom.xml

@@ -14,6 +14,7 @@
         <module>siwei-file</module>
 		<module>siwei-gen</module>
         <module>siwei-spatial</module>
+        <module>siwei-apply</module>
     </modules>
 
     <artifactId>siwei-modules</artifactId>

+ 91 - 0
siwei-modules/siwei-apply/pom.xml

@@ -0,0 +1,91 @@
+<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/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.siwei</groupId>
+        <artifactId>siwei-modules</artifactId>
+        <version>3.6.5</version>
+    </parent>
+    <artifactId>siwei-apply</artifactId>
+    <name>Archetype - siwei-apply</name>
+    <url>http://maven.apache.org</url>
+
+
+    <dependencies>
+
+        <!-- SpringCloud Alibaba Nacos -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+
+        <!-- SpringCloud Alibaba Nacos Config -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+
+        <!-- SpringCloud Alibaba Sentinel -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
+        </dependency>
+
+        <!-- SpringBoot Actuator -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.postgresql</groupId>
+            <artifactId>postgresql</artifactId>
+        </dependency>
+
+
+
+        <!-- siwei Common DataSource -->
+        <dependency>
+            <groupId>com.siwei</groupId>
+            <artifactId>siwei-common-datasource</artifactId>
+        </dependency>
+
+        <!-- siwei Common DataScope -->
+        <dependency>
+            <groupId>com.siwei</groupId>
+            <artifactId>siwei-common-datascope</artifactId>
+        </dependency>
+
+        <!-- siwei Common Log -->
+        <dependency>
+            <groupId>com.siwei</groupId>
+            <artifactId>siwei-common-log</artifactId>
+        </dependency>
+
+        <!-- siwei Common Swagger -->
+        <dependency>
+            <groupId>com.siwei</groupId>
+            <artifactId>siwei-common-swagger</artifactId>
+        </dependency>
+
+
+
+    </dependencies>
+
+    <build>
+        <finalName>${project.artifactId}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

+ 21 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/SiWeiApplyApplication.java

@@ -0,0 +1,21 @@
+package com.siwei.apply;
+
+import com.siwei.common.security.annotation.EnableCustomConfig;
+import com.siwei.common.security.annotation.EnableRyFeignClients;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * 业务模块
+ *
+ * @author siwei-zhx
+ */
+@EnableCustomConfig
+@EnableRyFeignClients
+@SpringBootApplication
+public class SiWeiApplyApplication {
+    public static void main(String[] args) {
+        SpringApplication.run(SiWeiApplyApplication.class, args);
+        System.out.println("(♥◠‿◠)ノ゙  空间处理服务模块启动成功   ლ(´ڡ`ლ)゙  ");
+    }
+}

+ 33 - 0
siwei-modules/siwei-apply/src/main/resources/bootstrap.yml

@@ -0,0 +1,33 @@
+# Tomcat
+server:
+  port: 9201
+
+# Spring
+spring: 
+  application:
+    # 应用名称
+    name: apply
+  profiles:
+    # 环境配置
+    active: dev
+  cloud:
+    nacos:
+      discovery:
+        # 服务注册地址
+        enabled: true
+        namespace: one_code
+        server-addr: 127.0.0.1:8848
+        username: nacos
+        password: nacos
+      config:
+        # 配置中心地址
+        enabled: true
+        namespace: one_code
+        server-addr: 127.0.0.1:8848
+        username: nacos
+        password: nacos
+        # 配置文件格式
+        file-extension: yml
+        # 共享配置
+        shared-configs:
+          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

+ 1 - 1
siwei-modules/siwei-file/src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 # Tomcat
 server:
-  port: 9300
+  port: 9202
 
 # Spring
 spring: 

+ 1 - 1
siwei-modules/siwei-gen/src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 # Tomcat
 server:
-  port: 9202
+  port: 9203
 
 # Spring
 spring: 

+ 1 - 1
siwei-modules/siwei-job/src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 # Tomcat
 server:
-  port: 9203
+  port: 9204
 
 # Spring
 spring: 

+ 1 - 1
siwei-modules/siwei-spatial/src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 # Tomcat
 server:
-  port: 6204
+  port: 9205
 
 # Spring
 spring: 

+ 1 - 1
siwei-modules/siwei-system/src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 # Tomcat
 server:
-  port: 9201
+  port: 9206
 
 # Spring
 spring: