spring-boot-migration

Featured

Use when preparing a Spring Boot 3 application for Boot 4, upgrading to Boot 3.5 first, removing deprecated APIs, auditing dependencies, or planning a staged Framework 7 migration.

API & Backend 260 stars 40 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
80
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Spring Boot 3 to 4 Migration Migrate in controlled stages. Keep behavior changes separate from the framework upgrade. ## Establish the baseline 1. Upgrade to the latest Boot 3.5 maintenance release. 2. Run unit, slice, integration, startup, and migration tests before changing the major version. 3. Remove Boot 3 deprecations and record all explicitly versioned dependencies. 4. Compare the Boot 3.5 and Boot 4 dependency-management reports. 5. Verify Spring Cloud and other portfolio release-train compatibility independently. ## Prepare for Boot 4 - Require Java 17 or newer; prefer Java 21 for application builds. - Replace `javax.*` remnants with Jakarta APIs before the upgrade. - Remove Undertow assumptions; Boot 4 requires a Servlet 6.1-compatible container. - Inventory Jackson 2 custom modules, serializers, `ObjectMapper` beans, and package imports. - Inventory test annotations, especially `@MockBean`, `@SpyBean`, and implicit MockMvc setup. - Add `spring-boot-properties-migrator` temporarily after changing the Boot version, then remove it. ## Migrate dependencies deliberately Boot 4 is more modular. Prefer dedicated starters over relying on incidental transitive dependencies. Expect dedicated starters for web MVC, security tests, Flyway/Liquibase, and technology-specific tests. Use the classic starters only as a temporary diagnostic bridge, never as the final dependency model. ## Verify the result - Run the application with every supported profile. - Exercise schem...

Details

Author
rrezartprebreza
Repository
rrezartprebreza/spring-boot-skills
Created
4 months ago
Last Updated
4 days ago
Language
Java
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

springboot-migration

Use when upgrading an existing Spring Boot application to Boot 4 — dependency transitions, starter renames, test-annotation migration (e.g. @MockBean → @MockitoBean), Jackson 3 issues, related Spring Modulith 2 or Testcontainers 2 upgrade work, or planning a phased migration. Not for greenfield project creation or isolated repository design.

75 Updated 2 weeks ago
a-pavithraa
Data & Documents Solid

spring-boot-skill

Build Spring Boot 4.x applications following the best practices. Use this skill: * When developing Spring Boot applications using Spring MVC, Spring Data JPA, Spring Modulith, Spring Security * To create recommended Spring Boot package structure * To implement REST APIs, entities/repositories, service layer, modular monoliths * To use Thymeleaf view templates for building web applications * To write tests for REST APIs and Web applications * To write ArchUnit tests for testing architecture * To configure the recommended plugins and configurations to improve code quality, and testing while using Maven. * To use Spring Boot's Docker Compose support for local development * To create Taskfile for easier execution of common tasks while working with a Spring Boot application

181 Updated 1 weeks ago
sivaprasadreddy
AI & Automation Solid

api-versioning

Use when versioning Spring MVC or WebFlux APIs in Spring Boot 3 / Spring Framework 6. Covers explicit URL, header, and media-type strategies, compatibility rules, and deprecation handling.

260 Updated 4 days ago
rrezartprebreza