Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Spring Boot 4 for Spring Boot 3 Developers
New
2 students

Spring Boot 4 for Spring Boot 3 Developers

Migrate SpringBoot 3 to Boot 4: diagnose upgrade errors with real demos, API versioning, Jackson 3 and modern tests
Created by김 승현
Last updated 10/2026
English
EnglishKorean

What you'll learn

  • Plan and carry out a Spring Boot 3.5 to 4.1 migration using a working before-and-after project.
  • Diagnose upgrade failures caused by changed starters, moved packages, test configuration and renamed properties.
  • Build versioned REST APIs with validation, ProblemDetail responses, JPA and Jackson 3.
  • Configure RestClient and HTTP Service Clients with timeouts, shared headers, retries and concurrency limits.
  • Check null contracts with JSpecify and NullAway, and test APIs with modern Spring testing tools.
  • Test against PostgreSQL using Testcontainers and use Docker Compose during development.
  • Inspect health probes, OpenTelemetry traces, logs and request metrics.
  • Package the application as an executable jar or container image and measure startup with a Java AOT cache.

Course content

10 sections • 113 lectures • 7h 55m total length
  • 1.1 Why upgrade now3:34

    Identify the main reasons to consider a Spring Boot 4 upgrade. Connect the new framework foundation to the work you will need to plan in an existing Boot 3 application.

    Resources: download START_HERE.pdf for setup instructions, course-code.zip for the reference projects, Upgrade_Checklist.pdf for migration checks, and course-slides.zip for all lesson slides.

    The slides for this lesson are attached here as 01_slides.pdf and cover all parts of lesson 1.

  • 1.2 What changes in your code4:11

    Map the major changes to dependencies, imports and application behavior. Follow the upgrade fast track and choose a safe order for investigating compatibility issues.

  • 1.3 How this course works5:10

    Find your route through the course and understand the shelf REST API used in the examples. Use the demonstrations, quick checks and upgrade checklists to apply each topic to your own project.

  • 2.1 JDK 25 and the Gradle Wrapper4:02

    Check the JDK used by your terminal and understand the project's Java 25 setup. Inspect the Gradle Wrapper so your build uses the intended Gradle version.

    The slides for this lesson are attached here as 02_slides.pdf and cover all parts of lesson 2.

  • 2.2 Run the tests and the app6:08

    Run the supplied project's tests, read the report and start the application. Recognize common setup failures before beginning the upgrade demonstrations.

Requirements

  • Working knowledge of Java and an existing familiarity with Spring Boot 3.
  • Basic experience with REST APIs, dependency injection, JPA and automated tests.
  • A computer with JDK 25 for the main project, JDK 17 for the migration examples, a code editor and the Gradle Wrapper.
  • Docker is needed for the PostgreSQL container, tracing backend and container-image demonstrations.
  • Internet access for initial dependency and container-image downloads.

Description

This course contains the use of artificial intelligence.

Already using Spring Boot 3 and planning an upgrade? Learn to migrate to Spring Boot 4 by reproducing real failures, finding their causes and checking the fixes with tests and HTTP requests.

You will work with shelf, a book-catalog REST API, and a separate before-and-after migration project. The course uses Spring Boot 4.1.1 and Java 25 for the main application; the migration examples use JDK 17. Each topic connects a change in the stack to code or behavior you can inspect in your own application.

Diagnose the changes that break upgrades

Trace dependency-resolution errors to renamed starters and missing modules. Fix moved imports and failing test contexts. Detect configuration keys that are silently ignored, and use null-safety checks to catch unsafe code before it runs. The Upgrade Clinic brings these examples together as a practical diagnostic route.

Build and verify the new behavior

Explore Jackson 3, versioned REST APIs, validation, ProblemDetail responses, JPA and Hibernate 7. Configure RestClient and HTTP Service Clients with timeouts, shared headers, retries and concurrency limits. Compare MockMvcTester with real-server tests, then test PostgreSQL integration with Testcontainers.

Check your application beyond the happy path

Inspect health probes, OpenTelemetry traces, logs and request metrics. Package executable jars and container images, and interpret a measured Java AOT cache experiment. The demonstrations include deliberate mistakes and failed tests so you can see what a successful configuration actually changes.

Resources to use in your own upgrade

Download the reference source code, a setup guide, lesson slide PDFs and an upgrade checklist. The code includes the main shelf application, the pricing migration before-and-after projects, and a separate portal lab for the Spring Security upgrade. English and Korean subtitles are available for the course lectures. Each lesson's slide PDF is attached to its first video; the first video of the course also provides the complete slide collection and shared resources.

Choose your learning route

Follow the course in order to understand the changes across the stack, or focus on the migration section and Upgrade Clinic when you need to troubleshoot an existing upgrade. Bring working Java knowledge and experience with Spring Boot 3, REST APIs, JPA and automated tests. Docker is needed for the container-based demonstrations.

How this course is produced

The lessons combine focused explanations with recorded VS Code demonstrations. AI tools were used to prepare some of the course materials, such as scripts, slides and captions. Narration is produced with AI voice synthesis based on the instructor's own voice. All technical content, code and demos are created and reviewed by the instructor. Ask questions in the course Q&A with your versions, command and relevant error message, after removing credentials and private data.

Who this course is for:

  • Java developers maintaining Spring Boot 3 applications and preparing to upgrade to Spring Boot 4.
  • Spring developers who want practical demonstrations of the changes in Boot 4 and Spring Framework 7.
  • Backend engineers and technical leads who need a migration checklist and a way to diagnose upgrade failures.