Spring Boot 2.7 → 3.2 Migration Skill
Overview
This skill migrates a Spring Boot 2.7.x / Java 8 microservice to Spring Boot 3.2.x / Java 21.
Migration Steps
- pom.xml: Update parent to Spring Boot 3.2.5, Java 21, replace jjwt with jjwt-api/impl/jackson 0.12.5, remove javax.xml.bind
- Namespaces: javax.persistence/validation/servlet → jakarta.*
- Security: WebSecurityConfigurerAdapter → SecurityFilterChain bean, EnableGlobalMethodSecurity → EnableMethodSecurity, antMatchers → requestMatchers, authorizeRequests → authorizeHttpRequests, lambda DSL
- HTTP Client: RestTemplate → RestClient
- Properties: Remove explicit Hibernate dialect (Hibernate 6 auto-detects)
Usage
pythonimport sys sys.path.insert(0, '/app/environment/skills/evo-spring-boot-migration/scripts') from run_migration import run_full_migration run_full_migration('/workspace')
Individual Scripts
migrate_pom.py- Updates pom.xml dependencies and versionsmigrate_namespaces.py- Replaces javax.* with jakarta.* in all Java filesmigrate_security.py- Rewrites SecurityConfig for Spring Security 6migrate_resttemplate.py- Rewrites ExternalApiService to use RestClientmigrate_properties.py- Updates application.properties for Hibernate 6run_migration.py- End-to-end entry point that calls all of the above


