Skip to content

Learn Microservices Book: Spring Boot 2.5 Upgrade Guide

An extra chapter showing how to update the book's source code from Spring Boot 2.4 to 2.5.5 and Java 17

This chapter describes how to upgrade the Learn Microservices with Spring Boot book’s source code to Spring Boot 2.5.5 and Java 17. No major changes but some parts of the code break, so we need to make some little adjustments here and there. We’ll also learn how to use the new RandomGenerator interface in tests.

No major complications, but the update breaks the code

The last upgrade of the book repositories to Spring Boot 2.4 was quite extensive mainly because of the upgrade to a new major version of Spring Cloud (2020.0.0). This time, the impact on the book’s code is much smaller.

About this guide: This is a practical approach to migrating a Spring Boot project from version 2.4 to version 2.5 and JDK 17. It uses the codebase from the Learn Microservices with Spring Boot book’s practical example, but it applies to other projects too. If you want to dive into how Spring Boot works and set up a complete microservice architecture, get a copy now.

We’ll take as a baseline the last changes to upgrade the projects to Spring Boot 2.4. The code is available on GitHub (while you’re there, star it!).

Source Code: The book’s source code with all the updates is available on GitHub: U.2.5.5. While you are there, please give it a star!

Master Microservices with Spring Boot

A hands-on guide to building production-ready microservices

Get the Book

Get More Architecture Insights

Join hundreds of software architects and engineers getting practical insights delivered to their inbox.

Back to Blog