From 4a47e4b93f62b5e636ac0e76f3e4ee98e2b83154 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期五, 02 八月 2024 08:32:55 +0800 Subject: [PATCH] 1、全局配置文件修改 2、工作流bpm功能修改 --- iailab-cloud/iailab-gateway/src/main/resources/application.yaml | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/iailab-cloud/iailab-gateway/src/main/resources/application.yaml b/iailab-cloud/iailab-gateway/src/main/resources/application.yaml index 846d4de..f158874 100644 --- a/iailab-cloud/iailab-gateway/src/main/resources/application.yaml +++ b/iailab-cloud/iailab-gateway/src/main/resources/application.yaml @@ -2,11 +2,11 @@ application: name: gateway-server - profiles: - active: local - main: allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 + + profiles: + active: @profiles.active@ config: import: @@ -14,6 +14,20 @@ - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置 cloud: + nacos: + server-addr: @nacos.server@ # Nacos 服务器地址 + username: @nacos.username@ + password: @nacos.password@ + discovery: # 【配置中心】配置项 + namespace: @profiles.active@ + group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP + metadata: + version: @nacos.metadata.version@ # 服务实例的版本号,可用于灰度发布 + management.context-path: ${server.servlet.context-path}/actuator + config: # 【注册中心】配置项 + namespace: @profiles.active@ + group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP + # Spring Cloud Gateway 配置项,对应 GatewayProperties 类 gateway: # 路由配置项,对应 RouteDefinition 数组 @@ -109,7 +123,7 @@ logging: file: - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + name: @log.path@/logs/${spring.application.name}.log # 日志文件名,全路径 knife4j: # 聚合 Swagger 文档,参考 https://doc.xiaominfo.com/docs/action/springcloud-gateway 文档 @@ -148,4 +162,9 @@ include: "*" endpoint: health: - show-details: always \ No newline at end of file + show-details: always + +# 日志文件配置 +logging: + level: + org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 \ No newline at end of file -- Gitblit v1.9.3