feat(admin): 实现只读词库管理后台

- 新增 Spring Boot 3 后端:JWT 认证、六个业务模块查询接口、Caffeine 聚合缓存与只读事务约束
- 新增 Vue 3 管理前端:登录、概览、词书、词条、词根词族、近反义词与数据质量
- 补充前后端 README、环境变量示例与本地构建部署说明
- 同步 OpenSpec 变更文档与任务进度(64/65,只读数据库账号待确认)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
voidandClaude Sonnet 4.6 committed 2026-11-08 22:55:15 +08:00
1 parent 131c2b6353
commit 4e68ba3890
137 files changed
+15423 -10

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# 复制为 .env 或直接在运行环境中设置;不要提交真实值。
DB_URL=jdbc:mysql://s1.void01.com:3306/word_market?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&connectTimeout=10000&socketTimeout=30000
DB_USERNAME=your_read_only_user
DB_PASSWORD=your_password
DB_POOL_SIZE=15
ADMIN_USERNAME=admin
# BCrypt 哈希,可用 htpasswd 生成:htpasswd -bnBC 10 "" 'your-password' | tr -d ':\n'
ADMIN_PASSWORD_HASH=$2a$10$replace_with_a_real_bcrypt_hash
JWT_SECRET=replace_with_a_random_secret_at_least_32_characters
ADMIN_TOKEN_TTL_HOURS=8
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
COVER_BASE_URL=https://static.beingfine.cn
CACHE_TTL_MINUTES=10
CACHE_MAXIMUM_SIZE=200
KNOWN_MISSING_ZPK_KEYS=0_53785_101_1775241011
SERVER_PORT=8080