Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Didn't Let Claude Upgrade My Java App. I Let It Work for Me.

说明与用途

使用两个 AI 代理(一个生成代码,另一个验证)将小型 Spring Boot 2.x 应用迁移到 Java 21 和 Spring Boot 3.3.5,遵循检查表和错误所有权规则,确保编译无误。

问题

Upgrading a legacy Spring Boot 2.x Java 8 service to Java 21 and Spring Boot 3.3.5 was complex, with many breaking changes and a risk of compounding errors.

结果

The migration succeeded with a structured, agent‑driven workflow that minimized manual effort, avoided unnecessary version hops, and ensured compile‑clean per‑item progress.

工作流

  • Plan migration with a checklist in MIGRATION.md
  • Use two Claude agents: Migrator (writes code) and Verifier (read‑only review)
  • Iterate per checklist item: Migrator marks [x], Verifier checks and marks [v], developer approves to [a] and commits
  • Re‑run Verifier after each approval to catch regressions
  • Ensure final build passes all tests and API replay before committing

证据

I asked Claude how to do this properly. The answer was very correct and very by the book: hop through Java 11 and 17, run OpenRewrite recipes, plus five specialist reviewer agents.

来源

The rule: the agent that writes the code never grades it.

来源

The build may be red, but an item isn't done while its files have compile errors or removal warnings that it, or an earlier item, owns.

来源

  • 记录日期: 2026-10-12T16:41:00.754Z