feat(config): 简化 rui-service-starter 配置

- 基于 application-template.yml 模板
- 只保留端口、服务名和 modules 配置
- 移除多余的 feign/resilience4j/logging 配置

对应工单 #1
This commit is contained in:
2026-06-05 08:42:57 +08:00
parent 726fc229d6
commit 2277bca1ad
@@ -1,8 +1,5 @@
# ============================================================================ # ============================================================================
# rui-service-starter.yaml — 聚合启动器 Nacos 配置 # rui-service-starter.yaml — 聚合启动器配置
# Data ID: rui-service-starter.yaml
# Group: DEFAULT_GROUP
# 功能:聚合 system、user 等模块,统一启动部署
# ============================================================================ # ============================================================================
server: server:
@@ -19,8 +16,6 @@ spring:
timeout-per-shutdown-phase: 30s # 优雅关闭等待时间 timeout-per-shutdown-phase: 30s # 优雅关闭等待时间
autoconfigure: autoconfigure:
exclude: exclude:
- com.alibaba.cloud.nacos.endpoint.NacosConfigEndpointAutoConfiguration
- com.alibaba.cloud.nacos.endpoint.NacosDiscoveryEndpointAutoConfiguration
servlet: servlet:
multipart: multipart:
max-file-size: 5MB max-file-size: 5MB
@@ -56,23 +51,6 @@ spring:
# 无 MyBatis 的模块(gateway)请删除下面这行 # 无 MyBatis 的模块(gateway)请删除下面这行
- optional:nacos:rui-data.${spring.cloud.nacos.config.file-extension:yaml} - 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: rui:
modules: modules:
@@ -106,7 +84,3 @@ management:
include: health include: health
discovery: discovery:
enabled: false enabled: false
logging:
file:
path: logs/${spring.application.name}