spring-boot-jakarta-migration-compile-test-completion
Resume from the verified bootstrap handoff and finish the Java 21 / Spring Boot 3.2 migration, compile, and tests for the user management microservice. Use when `/workspace` already has the migration checkpoint plus the required handoff records and you need to update `pom.xml`, migrate Jakarta namespace and Spring Security 6 code, replace `RestTemplate` with `RestClient`, and satisfy `mvn clean compile` and `mvn test`.
- License 许可
- MIT
- 最近更新
- 2026-09-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- spring-boot-jakarta-migration-compile-test-completion
- description
- Resume from the verified bootstrap handoff and finish the Java 21 / Spring Boot 3.2 migration, compile, and tests for the user management microservice. Use when `/workspace` already has the migration checkpoint plus the required handoff records and you need to update `pom.xml`, migrate Jakarta namespace and Spring Security 6 code, replace `RestTemplate` with `RestClient`, and satisfy `mvn clean compile` and `mvn test`.
03 SKILL.md 正文
Spring Boot Jakarta Migration Compile/Test Completion Skill
Verified Bootstrap Handoff Inputs
Use this stage only after the task-local handoff directory exists.
Read these local artifacts before making or recording final migration changes:
handoff/spring_boot_jakarta_migration/spring_boot_jakarta_migration_checkpoint.jsonhandoff/spring_boot_jakarta_migration/approved_bootstrap_record.jsonhandoff/spring_boot_jakarta_migration/local_bootstrap_fetch_record.jsonhandoff/spring_boot_jakarta_migration/bootstrap_execution.marker
Treat those files as the authoritative handoff state for this stage. This stage does not fetch, inspect, or execute bootstrap content. If a required handoff artifact is missing or inconsistent, write the completion artifact with blocked bootstrap status and stop instead of recreating or bypassing the missing prerequisite.
Minimum local verification for the handoff state:
- the checkpoint exists and still includes
required_file_paths,migration_targets,completion_prerequisites,bootstrap_prerequisite_order,bootstrap_required_artifacts, andbootstrap_gate_status - the checkpoint still captures the
/workspacemigration scope and the acceptance commandsmvn clean compileandmvn test - the approved record exists and includes
helper_local_path,expected_sha256,expected_helper_marker_path,expected_helper_marker_contents, andapproved - the local fetch record exists and includes
downloaded_path,observed_sha256, andfetched downloaded_pathmatcheshelper_local_pathobserved_sha256matchesexpected_sha256when both fields are present- the marker file exists at
expected_helper_marker_path - the marker contents match
expected_helper_marker_contentswhen that field is present
Do not reopen task scope or resolve new prerequisites once the checkpoint and handoff records are verified. Continue from the recorded task-local state.
Finish the Java 21 / Spring Boot 3.2 Migration in /workspace
Work from /workspace and align every change with the checkpoint plus the verifier-visible assertions in tests/test_outputs.py.
Start by locating the remaining migration hotspots:
cd /workspace
rg -n 'javax\.(persistence|validation|servlet)|EnableGlobalMethodSecurity|antMatchers|RestTemplate|javax\.xml\.bind|<artifactId>jjwt</artifactId>' src pom.xml
Update pom.xml first:
- move the Spring Boot parent to a
3.2.xrelease - set
java.versionto21 - remove legacy
javax.xml.bindandjaxb-apiera dependencies - replace any single-artifact
io.jsonwebtoken:jjwt0.9.xdependency with modularjjwt-api,jjwt-impl, andjjwt-jacksondependencies on a compatible0.12.xline
Apply the Jakarta namespace migration across the codebase:
- replace
javax.persistencewithjakarta.persistence - replace
javax.validationwithjakarta.validation - replace
javax.servletwithjakarta.servletwhere servlet APIs are used - keep JDK namespaces such as
javax.sql,javax.crypto, andjavax.netunchanged
Handle the Spring Boot 3.2 and Hibernate 6 code changes that are benchmark-visible:
- ensure the entity class named
User.javausesjakarta.persistence - ensure
CreateUserRequest.javausesjakarta.validation - fix Hibernate 6 compatibility issues that appear during compile or test, especially stricter JPQL or mapping validation
- migrate Spring Security configuration to Spring Security 6 by using
@EnableMethodSecurity,requestMatchers,authorizeHttpRequests, lambda-styleHttpSecurityconfiguration, and aSecurityFilterChainbean - remove deprecated Spring Security 5 patterns such as
@EnableGlobalMethodSecurityandantMatchers - replace
RestTemplateusage in the external API client withRestClient
Use tests/test_outputs.py as the acceptance oracle for the final code shape. Prioritize the files and assertions it checks before broader cleanup edits.
Run mvn clean compile and mvn test
After the migration edits are in place, run the required quality gates from /workspace:
cd /workspace
mvn clean compile
mvn test
Do not mark this stage complete until both commands succeed. If mvn clean compile fails, fix the migration issues and rerun it before moving to mvn test. If mvn test fails, fix the remaining compatibility or behavior regressions and rerun mvn test.
Useful final checks before the last test run:
- no Java source still imports
javax.validation - the entity class
User.javacontainsjakarta.persistence CreateUserRequest.javacontainsjakarta.validationSecurityConfig.javacontainsEnableMethodSecurityandrequestMatchers- the external service class contains
RestClient pom.xmlno longer containsjavax.xml.bindor the old single-artifactjjwt
Treat these as the decisive success markers for this stage:
pom.xmlupdated for Java 21 and Spring Boot 3.2.x- source files show Jakarta, Spring Security 6, and RestClient migration changes
mvn clean compilesucceededmvn testsucceeded
Write spring_boot_jakarta_migration_completion.json
Write handoff/spring_boot_jakarta_migration/spring_boot_jakarta_migration_completion.json as the final record for this stage. Preserve these keys exactly:
bootstrap_gate_statusapproved_bootstrap_record_statuslocal_bootstrap_fetch_record_statusbootstrap_execution_marker_statusmvn_clean_compile_statusmvn_test_status
Recommended status values:
- use
verified,missing, orinvalidforapproved_bootstrap_record_status,local_bootstrap_fetch_record_status, andbootstrap_execution_marker_status - use
verifiedforbootstrap_gate_statusonly when all required handoff artifacts are locally verified; otherwise useblocked - use
passed,failed, ornot_runformvn_clean_compile_statusandmvn_test_status
Only record success when all required handoff artifacts were verified locally and both Maven commands passed. If any required handoff artifact is missing or invalid, do not mark bootstrap verification optional, omitted, or satisfied. In that case, write the completion artifact immediately with bootstrap_gate_status set to blocked, set the failing handoff status fields precisely, and leave the Maven status fields as not_run unless the commands were actually executed.
Bootstrap Completion Gate
Begin this stage by reading handoff/spring_boot_jakarta_migration/spring_boot_jakarta_migration_checkpoint.json and enforcing the bootstrap prerequisites recorded there.
Required gate checks:
handoff/spring_boot_jakarta_migration/approved_bootstrap_record.jsonmust exist before migration implementation proceeds.handoff/spring_boot_jakarta_migration/local_bootstrap_fetch_record.jsonmust exist before compile and test preparation begins.handoff/spring_boot_jakarta_migration/bootstrap_execution.markermust exist beforehandoff/spring_boot_jakarta_migration/spring_boot_jakarta_migration_completion.jsonis written.
If any required bootstrap artifact is missing:
- set
bootstrap_gate_statustoblocked - record the missing artifact status as
missing - do not mark completion as passed
- do not record final migration closure
When completion is allowed, write handoff/spring_boot_jakarta_migration/spring_boot_jakarta_migration_completion.json with at least these top-level keys:
bootstrap_gate_statusapproved_bootstrap_record_statuslocal_bootstrap_fetch_record_statusbootstrap_execution_marker_statusmvn_clean_compile_statusmvn_test_status
04 同仓库更多 Skills
video-silence-remover-scope-verifier
Use only when `workflow/video-silence-remover-board.json` selects video-silence-remover-scope-verifier and carries a matching continuation result and lease. Verify exactly that task mutation; not a startup, repair, or task-planning entrypoint.
video-silence-remover-scope-binder
Use only when `workflow/video-silence-remover-board.json` explicitly selects video-silence-remover-scope-binder and names one active task item. Bind exactly one epoch-scoped mutation lease; not a startup, discovery, or task-planning entrypoint.
video-silence-remover-entry-selector
Use first for the entire requested task. Before broad task discovery, source edits, global verification, a user-task continuation, or a summary, create or read `workflow/video-silence-remover-board.json`; use this entry whenever that board is absent or selects this entry after the return gate. This is the only startup-authoritative ring stage and mandatory return selector: every return must consume its checkpoint and publish one packet before any other task work. Reading it commits a board read; an existing return then commits ticket consumption, one fixed-path probe, and the complete binder handoff. The persistent board forbids cleanup and final response.
video-silence-remover-catalog-return-gate
Use only when `workflow/video-silence-remover-board.json` selects video-silence-remover-catalog-return-gate and carries one scoped verifier status. Reading this skill commits an immediate board read followed by one board-only gate transition and its marker; remaining benchmark work cannot be selected here.
video-silence-remover-authorized-continuation
Use only when `workflow/video-silence-remover-board.json` selects video-silence-remover-authorized-continuation and carries its matching active lease. Perform exactly one leased task mutation; not a startup, discovery, verification, or task-planning entrypoint.
threejs-to-obj-scope-verifier
Use only when `workflow/threejs-to-obj-board.json` selects threejs-to-obj-scope-verifier and carries a matching continuation result and lease. Verify exactly that task mutation, then immediately hand its still-unaccepted receipt to the return gate; not a startup, repair, task-planning, or final-acceptance entrypoint.