- Create SECURITY.md with vulnerability disclosure policy - Create docs/README.md as documentation index page - Create docs/observability.md with metrics/logs/traces/alerting/SLO specs - Create docs/runbook.md with troubleshooting scenarios (RB-01 to RB-05) - Create docs/security.md with security design and compliance - Create docs/release.md with versioning and rollback strategies - Create docs/database.md with database design and migration strategy - Create docs/adr/0005-cache-error-handler.md for cache error handling ADR - Update README.md with documentation index section - Update docs/architecture.md to update B-7 rule and add trust boundary section - Create docs/api-guide.md with API specifications - Fix method names in OrderDao.java to match OrderMapper interface - Add Spring Boot Actuator dependency to tmpl-infrastructure - Fix Redis ping method in RedisHealthContributor.java - Fix syntax errors and method names in OrderAppService.java Co-authored-by: Qwen-Coder <[email protected]>
1.9 KiB
1.9 KiB
java-service-template 文档索引
本目录包含项目的全部生产级文档。建议按以下顺序阅读。
核心文档
| 文档 | 说明 |
|---|---|
| architecture.md | 分层架构、ArchUnit 规则、多租户设计 |
| api-guide.md | REST API 规范、请求/响应格式、错误码 |
| database.md | 数据库 Schema、索引策略、Flyway 迁移规范 |
| configuration.md | 配置属性、Profile 矩阵、环境变量 |
| security.md | 认证授权、租户信任边界、Actuator 暴露策略、漏洞管理 |
开发与测试
| 文档 | 说明 |
|---|---|
| development.md | 本地开发环境搭建、IDE 配置、调试技巧 |
| testing.md | 测试分层、Testcontainers、ArchUnit 规则、质量门 |
运维与发布
| 文档 | 说明 |
|---|---|
| deployment.md | Docker 构建、Kubernetes/Kustomize 部署、探针配置 |
| observability.md | 指标、日志、追踪、告警策略、SLO/SLA |
| runbook.md | 常见故障排查手册 |
| release.md | 版本号规范、发布流程、回滚策略 |
架构决策记录 (ADR)
| ADR | 标题 |
|---|---|
| 0001 | 采用分层 + 六边形架构 |
| 0002 | HTTP Header 多租户方案 |
| 0003 | 可选 Redis 缓存(属性开关) |
| 0004 | DTO 使用 Java Record |
| 0005 | 缓存异常容错策略 |
其他
| 文件 | 位置 | 说明 |
|---|---|---|
| SECURITY.md | 仓库根目录 | 漏洞披露政策与响应 SLA |
| CONTRIBUTING.md | 仓库根目录 | 贡献指南 |
| CHANGELOG.md | 仓库根目录 | 版本变更记录 |