Skip to content

[codex] Refactor to Spring Boot 2.7 + Vue 3 + TypeScript - #4

Draft
mgsky1 wants to merge 1 commit into
masterfrom
refactor/springboot-and-vue3
Draft

[codex] Refactor to Spring Boot 2.7 + Vue 3 + TypeScript#4
mgsky1 wants to merge 1 commit into
masterfrom
refactor/springboot-and-vue3

Conversation

@mgsky1

@mgsky1 mgsky1 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

What changed

  • 完整重构 Struts2 + JSP + JDBC 单体为 Spring Boot 2.7 (Java 8) + MyBatis + Vue 3 + TypeScript + Element Plus 前后端分离架构
  • 5 个用户故事全部落地:US1 学生查成绩 / US2 教师录改成绩 / US3 学生 CRUD / US4 课程 CRUD / US5 账号自服务
  • 新增 backend/ + frontend/ + docs/ + specs/ + scripts/ 目录;删除 src/WebRoot/.settings/.classpath.project 等遗留物;smxy_class.sql 归档到 docs/legacy/

Why

  • 老架构前后端耦合、无测试、密码明文、权限靠 JSP 判断,无法演进
  • 用户要求全面重构

Impact

  • API 契约见 specs/001-score-system-rebuild/contracts/api.md(仅 GET/POST + JWT + 统一 ApiResponse 信封)
  • V3 迁移强制把所有旧密码重置为 BCrypt("123456"),运维步骤见 docs/MIGRATION.md
  • 老账号首次登录后必须走 /account/password/change 修改密码

Validation

  • Backend: mvn -B verify(291 tests + JaCoCo Service≥85% / Controller≥80% / Mapper≥70% 全过)
  • Frontend: npm test -- --coverage(145 tests + 分目录 threshold 全过)
  • Bundle: 主 chunk gzip 84.64 KB ≤ 300 KB(T175 门禁)
  • E2E smoke: scripts/smoke.sh 14/14
  • 越权矩阵:SecurityMatrixTest 60/60(T170 SC-006)
  • 服务端校验兜底:ServerValidationBypassTest 14/14(T171 SC-007)
  • 性能:p95=14ms/16ms,p99=21ms/33ms(T172 SC-003/004)
  • 可访问性:axe-core WCAG 2A/AA 无 critical/serious(T174)

@mgsky1
mgsky1 force-pushed the refactor/springboot-and-vue3 branch from 22f73f7 to 4d4150c Compare July 5, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants