From 49b4b614aacd0c3707a94820c264989a91c66edb Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期二, 24 十二月 2024 11:12:10 +0800
Subject: [PATCH] 修改日志路径

---
 iailab-cloud/iailab-gateway/src/main/resources/application.yaml |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/iailab-cloud/iailab-gateway/src/main/resources/application.yaml b/iailab-cloud/iailab-gateway/src/main/resources/application.yaml
index 0923fc7..3f5f03f 100644
--- a/iailab-cloud/iailab-gateway/src/main/resources/application.yaml
+++ b/iailab-cloud/iailab-gateway/src/main/resources/application.yaml
@@ -122,18 +122,33 @@
             - Path=/admin-api/shasteel/**
           filters:
             - RewritePath=/admin-api/shasteel/v3/api-docs, /v3/api-docs
+        ## xmcpms 服务
+        - id: xmcpms-admin-api # 路由的编号
+          uri: grayLb://xmcpms-server
+          predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
+            - Path=/admin-api/xmcpms/**
+          filters:
+            - RewritePath=/admin-api/xmcpms/v3/api-docs, /v3/api-docs
+        ## xmcsms 服务
+        - id: xmcsms-admin-api # 路由的编号
+          uri: grayLb://xmcsms-server
+          predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
+            - Path=/admin-api/xmcsms/**
+          filters:
+            - RewritePath=/admin-api/xmcsms/v3/api-docs, /v3/api-docs
       x-forwarded:
         prefix-enabled: true # 避免 Swagger 重复带上额外的 /admin-api/system 前缀
 
 server:
   port: 48080
   servlet:
+    context-path: /
     session:
       timeout: 120s
 
 logging:
   file:
-    name: @log.path@/logs/${spring.application.name}.log # 日志文件名,全路径
+    name: @log.path@/iailab-gateway/log/${spring.application.name}.log # 日志文件名,全路径
 
 knife4j:
   # 聚合 Swagger 文档,参考 https://doc.xiaominfo.com/docs/action/springcloud-gateway 文档

--
Gitblit v1.9.3