Просмотр исходного кода

chore(config): 调整应用配置和依赖打包设置

- 修改 uacrd-manager-server 端口从 8501 到 8888
- 修改 ucard-cloud 端口从 8700 到 8777
- 将所有应用的默认配置文件从 dev 环境切换到 test 环境
- 更新 uacrd-manager-server 和 ucard-cloud 的 Eureka 注册地址到 18000 端口
- 修改 ucard-cloud 数据库连接从 cwg_crm 到 cwg_card
- 调整 ucard-eureka 端口从 7000 到 18000
- 重构 ucard-cloud 的 Maven 打包插件配置,简化输出目录设置
kongxiangyang 5 месяцев назад
Родитель
Сommit
10e1f25ed8

+ 1 - 1
uacrd-manager-server/src/main/resources/application-dev.yml

@@ -21,7 +21,7 @@ web:
 eureka:
   client:
     serviceUrl:
-      defaultZone: http://admin:admin123456@localhost:17000/eureka
+      defaultZone: http://admin:admin123456@localhost:18000/eureka
 ribbon:
   ReadTimeout: 60000
   ConnectTimeout: 60000

+ 1 - 1
uacrd-manager-server/src/main/resources/application-test.yml

@@ -18,7 +18,7 @@ logging:
 eureka:
   client:
     serviceUrl:
-      defaultZone: http://admin:admin123456@localhost:7000/eureka
+      defaultZone: http://admin:admin123456@localhost:18000/eureka
 login:
   single-sign-on: true
 web:

+ 2 - 2
uacrd-manager-server/src/main/resources/application.yml

@@ -1,8 +1,8 @@
 server:
-  port: 8501
+  port: 8888
 spring:
   profiles:
-    active: dev
+    active: test
   application:
     name: ucard-manager-service
 mybatis:

+ 8 - 10
ucard-cloud/pom.xml

@@ -110,17 +110,15 @@
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <configuration>
-                    <outputDirectory>
-                        ${project.build.directory}/../../lib
-                    </outputDirectory>
-                    <layout>ZIP</layout>
-                    <includes>
-                        <include>
-                            <groupId>com.crm.ucard</groupId>
-                            <artifactId>com-crm-ucard</artifactId>
-                        </include>
-                    </includes>
+                    <mainClass>com.crm.ucard.UcardApplication</mainClass>
                 </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
             </plugin>
         </plugins>
     </build>

+ 1 - 1
ucard-cloud/src/main/resources/application-dev.yml

@@ -17,4 +17,4 @@ web:
 eureka:
   client:
     serviceUrl:
-      defaultZone: http://admin:admin123456@localhost:17000/eureka
+      defaultZone: http://admin:admin123456@localhost:18000/eureka

+ 2 - 2
ucard-cloud/src/main/resources/application-test.yml

@@ -1,6 +1,6 @@
 spring:
   datasource:
-    url: jdbc:mysql://localhost:28571/cwg_crm?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowMultiQueries=true&useSSL=false
+    url: jdbc:mysql://localhost:28571/cwg_card?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowMultiQueries=true&useSSL=false
     username: root
     password: NSH01Y0GTmUNjgg6xw80qg==
   jpa:
@@ -14,7 +14,7 @@ spring:
 eureka:
   client:
     serviceUrl:
-      defaultZone: http://admin:admin123456@localhost:7000/eureka
+      defaultZone: http://admin:admin123456@localhost:18000/eureka
 
 web:
   upload-path: ../upload

+ 2 - 2
ucard-cloud/src/main/resources/application.yml

@@ -1,8 +1,8 @@
 server:
-  port: 8700
+  port: 8777
 spring:
   profiles:
-    active: dev
+    active: test
   application:
     name: ucard-service
 

+ 1 - 1
ucard-eureka/src/main/resources/application-test.yml

@@ -1,2 +1,2 @@
 server:
-  port: 7000
+  port: 18000

+ 1 - 1
ucard-eureka/src/main/resources/application.yml

@@ -1,6 +1,6 @@
 spring:
   profiles:
-    active: dev
+    active: test
   application:
     name: eureka-server-cluster
 security: