spring-boot-4-pro

Guides Spring Boot 4.x development, migration from Boot 3.x, and updated Spring ecosystem usage.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/zuldare/apuntesIA --skill spring-boot-4-pro-zuldare
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: spring-boot-4-pro
Source: https://github.com/zuldare/apuntesIA/tree/main/skills/spring-boot-4-pro
Command: npx skills add https://github.com/zuldare/apuntesIA --skill spring-boot-4-pro-zuldare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Spring Boot 4 introduces breaking changes across the entire Spring portfolio—Jackson 3 groupId changes, Spring Security 7 API renames, modularized starters, JUnit 6, and Jakarta EE 11 baselines—that make Boot 3.x knowledge outdated and migrations error-prone. This Skill provides accurate, version-specific guidance so you avoid deprecated APIs and misconfigured dependencies. ## Core Features & Use Cases - Migration Guidance: Step-by-step upgrade path from Boot 3.x, including OpenRewrite recipes, deprecation fixes, and the recommended migration sequence. - Breaking Change Reference: Concrete before/after code for Jackson 3, Spring Security 7, Hibernate 7, JUnit 6, and modularized starters. - New Feature Patterns: Ready-to-use examples for native API versioning, HTTP Service Clients, the OpenTelemetry starter, JSpecify null-safety, and JmsClient. - Use Case: You are upgrading a microservice from Spring Boot 3.4 to 4.0 and need to replace @MockBean with @MockitoBean, update Jackson dependencies to tools.jackson, and reconfigure your SecurityFilterChain—this Skill walks you through each change with correct code. ## Quick Start Ask the assistant to help migrate your Spring Boot 3.x project to Spring Boot 4, or ask how to use a specific Boot 4 feature like API versioning or the OpenTelemetry starter.

Frequently Asked Questions about spring-boot-4-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate from Spring Boot 3.x to Spring Boot 4?▼

First upgrade to Boot 3.5.x and fix all deprecation warnings, then run the OpenRewrite UpgradeSpringBoot_4_0 recipe with mvn rewrite:run. Afterward review Jackson 3 changes, validate Hibernate SQL output, update modularized starters, and migrate tests to JUnit 6.

What are the breaking changes in Spring Boot 4?▼

Key breaking changes include Jackson 3 moving to the tools.jackson groupId, Spring Security 7 renaming AuthorizationManager.check() to authorize(), removal of @MockBean/@SpyBean, modularized starters like spring-boot-starter-aspectj, and a mandatory Jakarta EE 11 baseline.

How do I replace @MockBean in Spring Boot 4 tests?▼

Replace @MockBean with @MockitoBean and @SpyBean with @MockitoSpyBean, since the old annotations were removed in Boot 4 after deprecation in 3.4. The new annotations work the same way inside @SpringBootTest classes.

Does Spring Boot 4 support API versioning natively?▼

Yes, Spring Boot 4 includes native API versioning without third-party libraries. Enable it via spring.mvc.apiversion properties and annotate controller methods with @ApiVersion, with optional ApiVersionResolver and ApiVersionParser beans for advanced control.

What Java version does Spring Boot 4 require?▼

Spring Boot 4 requires Java 17 as the minimum, with Java 21 LTS recommended and Java 25 supported. Build tools require Gradle 8.14+ (9 recommended) or Maven 3.9+.

Why did my Jackson dependencies break after upgrading to Spring Boot 4?▼

Jackson 3 changed its groupId from com.fasterxml.jackson to tools.jackson and its base package accordingly, though jackson-annotations keeps the old coordinates. Update your dependency declarations and imports, noting Jackson 2 management is retained for libraries that still need it.