系统 SHALL 对每个进入基座的 HTTP 请求提取或生成一个 traceId,写入 SLF4J MDC,使 logback 输出的每行日志都带上 [traceId] 字段;响应写回 X-Trace-Id 头;请求结束时清理 MDC。
X-Trace-Id: abc123%X{traceId} 输出为 abc123;响应头回写同值X-Trace-Id系统 SHALL 通过 application.yml 中 swagger.enable 开关控制 OpenAPI/Swagger UI 是否加载;默认 false;启用后 UI 暴露在 /api/swagger-ui.html(受 server.servlet.context-path 前缀影响)。
application-dev.yml 中设置 swagger.enable: true<host>/api/swagger-ui.html 可看到交互式文档@RestController 等)的 controller 自动列出swagger.enable 为 false 或未配置/v3/api-docs 均 404;不加载任何 springdoc bean系统 SHALL 暴露 /actuator/health 与 /actuator/info 两个端点,其他 actuator 端点默认关闭。
<host>/api/actuator/health{"status":"UP", ...};包含数据源(若配置)健康子项/actuator/env 或 /actuator/beans