
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.
Map the major changes to dependencies, imports and application behavior. Follow the upgrade fast track and choose a safe order for investigating compatibility issues.
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.
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.
Run the supplied project's tests, read the report and start the application. Recognize common setup failures before beginning the upgrade demonstrations.
Generate a Spring Boot 4 project using Spring Initializr in the browser and with curl. Compare the selected dependencies with the Boot 3 project structure you already know.
The slides for this lesson are attached here as 03_slides.pdf and cover all parts of lesson 3.
Read the generated files and build.gradle step by step. Explain the plugins, Java toolchain and technology-specific dependencies you will need when updating an existing build.
Trace the application entry point, generated test and first run. Review the runtime-version endpoint and the checks that confirm your project is using the expected stack.
Understand how Boot 4 splits auto-configuration into technology modules. Inspect the shelf dependency tree and connect the new naming rules to the libraries your application actually uses.
The slides for this lesson are attached here as 04_slides.pdf and cover all parts of lesson 4.
Recognize renamed starters and classes that moved packages. Follow a real compilation failure to the import and module needed to fix it.
Match technology starters with their test starters. Understand how classic starters can support a staged migration and review the module checklist.
Read auto-configuration conditions and inspect the live conditions report. Understand why a configuration applies, or backs off when you provide your own bean.
The slides for this lesson are attached here as 05_slides.pdf and cover all parts of lesson 5.
Connect application.yaml settings to a ConfigurationProperties record. Inspect relaxed binding and generated metadata so configuration changes remain understandable.
Use profile-specific settings and compare configuration sources. Watch environment variables and command-line arguments override a value, then review the configuration checklist.
Read a sealed result type and an exhaustive switch in the Spring application. Add a new case and see how the compiler exposes the code that needs updating.
The slides for this lesson are attached here as 06_slides.pdf and cover all parts of lesson 6.
Enable virtual threads and inspect the slow endpoint and load tool. Watch the same application run under load before and after the setting changes.
Interpret the measured virtual-thread results and their limits. Distinguish blocking-I/O benefits from workloads that need a different performance approach.
Follow a request through the book API's controller, service and persistence layers. Understand why request and response records keep the public API separate from the entity.
The slides for this lesson are attached here as 07_slides.pdf and cover all parts of lesson 7.
Read the request record, response record, controller and service. Locate validation, HTTP mapping and business rules in the supplied source code.
Send create, read, list and delete requests to the running API. Inspect status codes and the Location header, then review the REST design checklist.
Understand the data-access layers and read the Book entity. Review entity design rules before examining Hibernate 7 behavior.
The slides for this lesson are attached here as 08_slides.pdf and cover all parts of lesson 8.
Read repository methods and inspect the SQL behind actual requests. Observe Hibernate startup and the effect of the open-in-view setting.
Locate transaction boundaries in the service and run a focused repository test. Review how persistence tests and explicit boundaries help validate an upgrade.
Read request-validation constraints and the standard ProblemDetail response shape. Connect invalid input to predictable API error responses.
The slides for this lesson are attached here as 09_slides.pdf and cover all parts of lesson 9.
Compare Boot's built-in problem responses with the application's custom exception handling. Inspect field errors and domain exceptions in the running API.
Exercise invalid requests, missing records, conflicts and malformed JSON. Run the API tests that protect error behavior during an upgrade.
Inspect Jackson 3 dependencies and identify changed packages, exception behavior and Boot configuration names. Map these changes to code you may need to migrate.
The slides for this lesson are attached here as 10_slides.pdf and cover all parts of lesson 10.
Pin JSON field-order behavior with a test and compare compatibility defaults. Read the failing test report to understand why string-based JSON checks can break.
Read and exercise the mapper customizer used by shelf. Observe its effect on null fields and review options when Jackson 2 compatibility is still needed.
Compare an old Jackson setting with its replacement and observe a silently ignored key. Use behavior checks alongside configuration migration.
Understand why an API needs versions and compare ways to send a version. Inspect the versioning configuration used by shelf.
The slides for this lesson are attached here as 11_slides.pdf and cover all parts of lesson 11.
Read versioning properties and version attributes on request mappings. Follow version syntax and request matching rules before testing real requests.
Send requests with missing, supported and unsupported versions. Verify how supported versions are declared and how changing the versioning style affects requests.
Compare two response shapes for the same book. Read the V2 response record and understand why an API change may need a new version.
The slides for this lesson are attached here as 12_slides.pdf and cover all parts of lesson 12.
Inspect baseline version mappings and the enrich endpoint. Reproduce the difference between an unsupported version and a request that has no matching route.
Register a version-deprecation handler and inspect the response headers. Understand what Deprecation, Link and Sunset communicate to clients.
Run version-policy tests and break the configuration deliberately. Use the failures to protect response compatibility and deprecation behavior.
Choose an HTTP client and configure RestClient through Boot's builder. Read a successful call that maps an external response to a record.
The slides for this lesson are attached here as 13_slides.pdf and cover all parts of lesson 13.
Map remote HTTP failures to application exceptions and configure timeouts. Run tests that show whether those settings actually apply.
Bypass Boot's builder and try an obsolete timeout key to reproduce failures. Compare a refused connection with a server that accepts a connection but never responds.
Review practical rules for outbound calls and moving away from RestTemplate. Use the client checklist to plan changes in existing code.
Declare an HTTP call as a Java interface using HTTP exchange annotations. Understand the separation between the service contract and client registration.
The slides for this lesson are attached here as 14_slides.pdf and cover all parts of lesson 14.
Register an HTTP Service Client and connect its group name to configuration. Review which settings are shared by clients in the same group.
Apply shared headers and inspect the actual outgoing request. Follow the application caller that depends on the interface.
Test the client against a fake server and break the group name deliberately. Compare the resulting error with a working call in the running application.
Compare Spring Framework's retry support with the Spring Retry setup used in older projects. Review changed semantics and decide which failures are appropriate to retry.
The slides for this lesson are attached here as 15_slides.pdf and cover all parts of lesson 15.
Enable resilient methods, configure retry settings and time a real call. Connect the elapsed time to attempts and pauses.
Inspect retry logs and tests that count calls. Change the retry count and remove the enabling annotation to see which assertions catch the mistakes.
Read programmatic RetryTemplate usage and compare execute with invoke. Observe exception behavior and review retry design principles.
Understand why virtual threads still need limits on downstream concurrency. Inspect ConcurrencyLimit and a test that counts requests in flight.
The slides for this lesson are attached here as 16_slides.pdf and cover all parts of lesson 16.
Read the concurrency test's timing and remove the limit. Observe the failed assertion when more requests run concurrently than intended.
Compare waiting with rejecting excess calls. Observe the rejection exception and choose a policy based on caller behavior.
Move the concurrency cap into configuration and change it through an environment variable. Review how to select a limit for the downstream resource.
Check your understanding of concurrency policies and review the upgrade checklist. Connect the cap, retry behavior and configuration choices.
Recognize when conditional bean definitions become difficult to maintain. Compare registration approaches before introducing BeanRegistrar.
The slides for this lesson are attached here as 17_slides.pdf and cover all parts of lesson 17.
Read the registrar, provider branches and Import declaration. Understand how the registry creates the implementation selected by configuration.
Test registration branches and inspect their effect on an API response. Try a misspelled setting and remove the import to see silent fallback and missing-bean failures.
Decide when programmatic registration helps and when simpler configuration is enough. Review the bean-registration checklist for an existing application.
Understand Spring's null contracts and JSpecify annotations. Identify where explicit nullability helps reveal upgrade problems earlier.
The slides for this lesson are attached here as 18_slides.pdf and cover all parts of lesson 18.
Read package null markers and enable NullAway in the build. Introduce a nullable dereference and inspect the compiler diagnostic.
Remove a null marker and examine Spring's API contracts. Fix the unsafe accesses and confirm that compilation succeeds again.
Examine how the course's NullAway version handles JPA entity initialization. Review a gradual adoption plan and the null-safety checklist.
Inspect the versions and dependencies of the course's testing stack. Identify technology-specific test starters when migrating the build.
The slides for this lesson are attached here as 19_slides.pdf and cover all parts of lesson 19.
Compare mock-bean configuration and required web-test annotations. Remove AutoConfigureMockMvc and read the missing-tester failure.
Read a web slice test and run it with the required mocked collaborator. Remove one mock and trace the failed context to the missing bean.
Observe how test configuration affects context reuse. Review JUnit 6 migration points and the testing checklist.
Compare MockMvcTester with tools that call a real server. Choose a web-test approach based on the behavior you need to verify.
The slides for this lesson are attached here as 20_slides.pdf and cover all parts of lesson 20.
Read and run MockMvcTester and RestTestClient tests. Compare API assertions with behavior that depends on a real HTTP server.
Review a client-configuration failure and choose the right testing tool. Check a virtual-thread assertion to distinguish mock execution from server execution.
Set up a PostgreSQL integration test with Testcontainers. Read how the container and service connection supply the application's database settings.
The slides for this lesson are attached here as 21_slides.pdf and cover all parts of lesson 21.
Run the test and inspect database startup logs. Remove the schema setting and reproduce the missing-table failure.
Read Docker Compose development settings and start the PostgreSQL profile. Check application health and observe container lifecycle behavior.
Choose between Testcontainers and Docker Compose for the task at hand. Review the database-testing and development checklist.
Inspect Actuator configuration and the health response. Understand which components are checked and which details the application exposes.
The slides for this lesson are attached here as 22_slides.pdf and cover all parts of lesson 22.
Call liveness, readiness and info endpoints. Make readiness fail while liveness remains healthy to understand their different purposes.
Verify an endpoint allow-list and a separate management port. Run probe tests and remove health exposure to reproduce a 404 failure.
Check your understanding of health probes and endpoint exposure. Review the production-readiness checklist before applying it to your own service.
Connect traces, metrics and logs to the questions they answer. Understand the observability libraries used in the course application.
The slides for this lesson are attached here as 23_slides.pdf and cover all parts of lesson 23.
Inspect the OpenTelemetry starter and profile-specific export settings. Start Jaeger as the tracing backend for the demonstration.
Send requests and follow an enrich trace through its spans. Match the trace identifier in Jaeger with the application's logs.
Inspect request metrics and the custom API-version tag. Count calls by version and break the observation configuration to see the test fail.
Review production considerations for telemetry and the observability checklist. Connect sampling, exported data and operational cost to configuration choices.
Build and run an executable jar. Inspect bundled libraries and the manifest to understand the artifact you deploy.
The slides for this lesson are attached here as 24_slides.pdf and cover all parts of lesson 24.
Build a container image with buildpacks and run it without writing a Dockerfile. Verify the application's runtime and inspect image-build considerations.
Create a Java AOT cache and compare three startup methods in the recorded experiment. Try a cache from a different jar and interpret the JVM's response.
Choose a packaging and startup approach based on your environment. Review the deployment checklist and the limits of the measured results.
Choose when to upgrade and follow a safe sequence from a Spring Boot 3.5 baseline. Separate preparation from the version bump and behavior verification.
The slides for this lesson are attached here as 25_slides.pdf and cover all parts of lesson 25.
Inventory dependencies, imports, test configuration and settings before estimating the work. Read real deprecation warnings and connect each category to a migration check.
Run the properties migrator and inspect its diagnostic output. Reproduce a silently ignored HTTP timeout key and verify the replacement with a behavior test.
Run an OpenRewrite dry run and inspect the proposed patch. Distinguish changes that automation can make from decisions that still require review and tests.
Review the migration principles, quiz and upgrade checklist. Plan small changes with a passing baseline and a clear verification step.
Start with the separate Boot 3.5 pricing project and establish a passing test baseline. Bump the version deliberately and inspect the first dependency-resolution failure.
The slides for this lesson are attached here as 26_slides.pdf and cover all parts of lesson 26.
Fix starter and module dependencies, then work through the main-code compilation errors. Compare the migrated code with the reference solution.
Move test imports and diagnose a missing runtime module. Use the properties migrator to find obsolete settings without treating successful startup as proof of compatibility.
Fix the silently ignored setting and remove temporary migration support. Check retry behavior with a failing downstream service and distinguish passing existing tests from complete coverage.
Review the result and compare the before-and-after project. Use the quiz and checklist to confirm the migration's build, test and behavior checks.
Map the framework changes that accompany Boot 4 and open the separate portal Security lab. Compare the Boot 3.5 / Security 6.5 starting point with the Boot 4.1 / Security 7.1 reference solution.
The slides for this lesson are attached here as 27_slides.pdf and cover all parts of lesson 27.
Estimate Security migration work from actual deprecation warnings. Try a plain version bump and classify the resulting compilation failures.
Prepare the Security configuration on 6.5 using the Lambda DSL and supported replacements. Run tests and reduce deprecation warnings before changing the framework version.
Inspect the session JSON compatibility experiment and move the portal to Boot 4. Add the technology-specific Security test starter and verify the authenticated test behavior.
Remove compiler parameter metadata to reproduce a method-security failure. Review the remaining ecosystem changes and the Security migration checklist.
Turn the migration labs into a plan for your own application. Set a passing baseline, inventory the work and define checks that make an upgrade reviewable.
The slides for this lesson are attached here as 28_slides.pdf and cover all parts of lesson 28.
Run the supplied module inventory script across the example projects. Use the output to locate likely migration work and discuss the limits of simple source counts.
Inspect an OpenRewrite dry run on the Security portal. Apply the proposed changes and read the remaining compilation errors to see where manual work is still required.
Prepare a first stage on Boot 3.5 and record a last-green baseline. Use a pilot branch and a rollback rule while coordinating team responsibilities and the upgrade schedule.
Review common snags, the quiz and the final planning checklist. Choose small pilot changes and verification gates for a real-world migration.
Revisit the course through the running shelf application. Inspect runtime versions, API responses, deprecation headers, retries and readiness as checks you can reuse.
The slides for this lesson are attached here as 29_slides.pdf and cover all parts of lesson 29.
Run the complete shelf test suite and connect its test classes to the course topics. Use the results to protect the behavior established during the upgrade.
Try a small Spring Modulith boundary check and reproduce a cyclic dependency. Review next learning steps and apply the course's diagnostic habits to your own project.
Reproduce dependency-resolution failures and identify moved main-code packages. Classify a build error before changing the dependency or import responsible for it.
The slides for this lesson are attached here as 30_slides.pdf and cover all parts of lesson 30.
Fix a moved test import and diagnose missing runtime modules and test-context beans. Use the phase of failure to narrow down the likely cause.
Reproduce a null-contract compilation error and a silently ignored timeout setting. Use compiler checks and behavior tests to catch changes that startup alone misses.
Apply the diagnostic checklist to an unfamiliar upgrade error. Review how to classify failures, make a focused correction and verify the result.
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.