Skip to content

Learn Microservices Book: Spring Boot 2.6 Upgrade Guide

The extra chapter for the book's source code update from Spring Boot 2.5 to 2.6 and from Spring Cloud 2020 to 2021.0

This chapter describes how to upgrade the Learn Microservices with Spring Boot book’s source code to Spring Boot 2.6.2 and Spring Cloud 2021.0. Good news: a very simple update this time, I didn’t need any changes apart from the version updates.

Good news: a very smooth upgrade

The last upgrades (check all book update guides) introduced some breaking changes in the book repositories. This time you only need to update the versions to make the code work with the latest releases.

This has been quite surprising for me since a new major version of Spring Cloud, 2021.0, has been released, and it’s needed to run Spring Boot 2.6. Luckily, the breaking changes don’t apply to the features and modules used in this microservice architecture.

About this guide: This is a practical approach to migrating a Spring Boot project from version 2.5 to version 2.6 and Spring Cloud 2021.0. 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.5. The new source code is available on GitHub (while you’re there, give it a star!).

Source Code: The book’s source code with all the updates is available on GitHub: U.2.6. 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