spring-boot-migration
Skill293 starsChanged 4 months agoMITView on GitHub
Use when upgrading an application from Spring Boot 3.5 to Boot 4, completing a Framework 7 migration, replacing modular starters, adopting Jackson 3, or diagnosing post-upgrade failures.
In this repository65 other files it gives its agents.
- ai-observabilitySkill
- api-versioningSkill
- configuration-propertiesSkill
- container-native-deploymentSkill
- domain-driven-designSkill
- event-driven-messagingSkill
- flyway-migrationsSkill
- hateoasSkill
- hexagonal-architectureSkill
- http-interface-clientsSkill
- idempotency-patternsSkill
- layered-architectureSkill
- mcp-serverSkill
- multi-module-mavenSkill
- multi-tenancySkill
- null-safetySkill
- oauth2-resource-serverSkill
- openapi-firstSkill
- problem-details-rfc9457Skill
- production-observabilitySkill
- resilience-retrySkill
- rest-api-conventionsSkill
- spring-ai-integrationSkill
- spring-batchSkill
- spring-boot-migrationSkill
- spring-cloud-gatewaySkill
- spring-data-jpaSkill
- spring-data-redisSkill
- spring-modulithSkill
- spring-security-jwtSkill
- testing-pyramidSkill
- transactional-patternsSkill
- webflux-reactive-patternsSkill
- ai-observabilitySkill
- api-versioningSkill
- configuration-propertiesSkill
- container-native-deploymentSkill
- domain-driven-designSkill
- event-driven-messagingSkill
- flyway-migrationsSkill
- hateoasSkill
- hexagonal-architectureSkill
- http-interface-clientsSkill
- idempotency-patternsSkill
- layered-architectureSkill
- mcp-serverSkill
- multi-module-mavenSkill
- multi-tenancySkill
- null-safetySkill
- oauth2-resource-serverSkill
- openapi-firstSkill
- problem-details-rfc9457Skill
- production-observabilitySkill
- resilience-retrySkill
- rest-api-conventionsSkill
- spring-ai-integrationSkill
- spring-batchSkill
- spring-cloud-gatewaySkill
- spring-data-jpaSkill
- spring-data-redisSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use Java 17 or newer; prefer Java 21 for application builds.
- Distinctive: line 15
Use Spring Framework 7, Jakarta EE 11, and a Servlet 6.1-compatible container.
- Distinctive: line 17
Use a Boot 4-compatible Spring Cloud release train.
- Distinctive: line 18
Use GraalVM 25 or newer for native images.
- Very specific: line 25
Use dedicated technology starters such as spring-boot-starter-flyway.
- Distinctive: line 26
Use technology-specific test starters.
- Very specific: line 27
Use spring-boot-starter-security-test for Spring Security test support.
- Very specific: line 28
Use spring-boot-starter-batch-jdbc when jobs require persistent metadata and restartability.
- Distinctive: line 29
Use classic starters only as a temporary migration bridge, then remove them.
- Very specific: line 35
Add @AutoConfigureMockMvc when a @SpringBootTest requires MockMvc.
- Distinctive: line 37
Remove Undertow configuration and verify the selected server supports Servlet 6.1.
- Distinctive: line 42
Start every supported profile and fix each reported property.
- Distinctive: line 43
Remove the migrator before release.
- Distinctive: line 48
Run unit, slice, integration, native, startup, and database migration tests as applicable.
- Distinctive: line 49
Verify JSON contracts, security failure responses, actuator exposure, and test slice composition.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spring Boot 4 Migration
Migrate from the latest Boot 3.5 release and keep business changes outside the upgrade diff.
Required baseline
- Use Java 17 or newer; prefer Java 21 for application builds.
- Use Spring Framework 7, Jakarta EE 11, and a Servlet 6.1-compatible container.
- Upgrade Kotlin to the supported baseline when applicable.
- Use a Boot 4-compatible Spring Cloud release train.
- Use GraalVM 25 or newer for native images.
Migrate modules and starters
Boot 4 splits infrastructure into focused modules and starters.
- Replace
spring-boot-starter-webwithspring-boot-starter-webmvc. - Use dedicated technology starters such as
spring-boot-starter-flyway. - Use technology-specific test starters; they bring the core test starter transitively.
- Use
spring-boot-starter-security-testfor Spring Security test support. - Use
spring-boot-starter-batch-jdbcwhen jobs require persistent metadata and restartability. - Use classic starters only as a temporary migration bridge, then remove them.
Migrate code
- Replace Jackson 2
com.fasterxml.jacksoncustomization with Jackson 3tools.jacksonAPIs. - Replace removed
@MockBeanand@SpyBeanwith framework Mockito bean overrides. - Add
@AutoConfigureMockMvcwhen a@SpringBootTestrequires MockMvc. - Replace removed or moved Boot package imports and deleted Boot 3 deprecations.
- Remove Undertow configuration and verify the selected server supports Servlet 6.1.
Configuration workflow
- Add
spring-boot-properties-migratortemporarily. - Start every supported profile and fix each reported property.
- Remove the migrator before release.
- Compare
/actuator/configprops, logging, JSON, and endpoint behavior against the baseline.
Verification
- Run unit, slice, integration, native, startup, and database migration tests as applicable.
- Verify JSON contracts, security failure responses, actuator exposure, and test slice composition.
- Inspect the dependency tree for old starters, duplicate Jackson generations, and unmanaged versions.
Examples
- See
examples/good-migration-plan.mdandexamples/bad-migration-plan.md.
Gotchas
- Agent keeps old starter names because compilation succeeds transitively - use Boot 4 dedicated starters.
- Agent adds both a technology test starter and the classic test starter - avoid duplicate test graphs.
- Agent leaves Jackson 2 and Jackson 3 customizations together - migrate the complete JSON boundary.
- Agent expects plain Batch starter metadata to persist - use the JDBC starter when restartability matters.
- Agent leaves the properties migrator or classic starters installed - remove temporary migration aids.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

