From 2277bca1addf0e93b6d755690fa83eea4088d961 Mon Sep 17 00:00:00 2001 From: pigeon Date: Fri, 5 Jun 2026 08:42:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E7=AE=80=E5=8C=96=20rui-servic?= =?UTF-8?q?e-starter=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 基于 application-template.yml 模板 - 只保留端口、服务名和 modules 配置 - 移除多余的 feign/resilience4j/logging 配置 对应工单 #1 --- .../nacos/rui-service-starter.yaml | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/backend/config-templates/nacos/rui-service-starter.yaml b/backend/config-templates/nacos/rui-service-starter.yaml index 3febc62..ed46f59 100644 --- a/backend/config-templates/nacos/rui-service-starter.yaml +++ b/backend/config-templates/nacos/rui-service-starter.yaml @@ -1,8 +1,5 @@ # ============================================================================ -# rui-service-starter.yaml — 聚合启动器 Nacos 配置 -# Data ID: rui-service-starter.yaml -# Group: DEFAULT_GROUP -# 功能:聚合 system、user 等模块,统一启动部署 +# rui-service-starter.yaml — 聚合启动器配置 # ============================================================================ server: @@ -19,8 +16,6 @@ spring: timeout-per-shutdown-phase: 30s # 优雅关闭等待时间 autoconfigure: exclude: - - com.alibaba.cloud.nacos.endpoint.NacosConfigEndpointAutoConfiguration - - com.alibaba.cloud.nacos.endpoint.NacosDiscoveryEndpointAutoConfiguration servlet: multipart: max-file-size: 5MB @@ -56,23 +51,6 @@ spring: # 无 MyBatis 的模块(gateway)请删除下面这行 - optional:nacos:rui-data.${spring.cloud.nacos.config.file-extension:yaml} -# 聚合模式:本地 Feign 调用转发到自身,避免跨服务 HTTP 调用 -feign: - client: - config: - userAuthFeign: - url: http://localhost:${server.port} - systemClientFeign: - url: http://localhost:${server.port} - -# Resilience4j 线程池隔离配置:透传租户上下文 -resilience4j: - thread-pool-bulkhead: - configs: - default: - contextPropagators: - - com.rui.common.feign.propagator.TenantContextPropagator - # 模块管理配置(供租户管理模块配置弹窗使用) rui: modules: @@ -106,7 +84,3 @@ management: include: health discovery: enabled: false - -logging: - file: - path: logs/${spring.application.name}