feat(observability): Actuator 健康端点 + 滚动日志 + base 日志降噪

总览 §10.2 可观测性:
- platform-app 加 spring-boot-starter-actuator,management 只暴露 health(开 liveness/readiness 探针,show-details when-authorized 不泄露 db 等组件细节);不上 Prometheus 全家桶
- SecurityConfig.PUBLIC_PATHS 加 /actuator/health(/**),prod 链探针免认证可达
- 新增 logback-spring.xml(控制台 + 50MB×14 天滚动文件,文件 appender 仅 dev/local/prod 启用,不污染单测)
- base application.yml 日志 com.dsasp/jdbc.core DEBUG→INFO(prod 继承 INFO,dev 仍 DEBUG);.gitignore 忽略 logs/
验证:真启动 dev profile(1.7s)curl /actuator/health=200 {UP,groups:[liveness,readiness]} + readiness/liveness 均 200 UP;SecurityProfileTest 3/3 + ArchitectureRulesTest 6/6 无回归。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-24 11:05:33 +08:00
parent 378fd74682
commit 21a181f44b
6 changed files with 73 additions and 4 deletions

2
.gitignore vendored
View File

@@ -8,6 +8,8 @@ parity-reports/
.DS_Store
# C3 卫生:可再生噪声(2026-06-13)
# 运行时日志(logback 滚动文件;§10.2 可观测性)
logs/
__pycache__/
*.pyc
/data/