Learn Microservices Book: Spring Boot 2.4 Upgrade Guide
Step-by-step migration guide from Spring Boot 2.3 to Spring Boot 2.4 for the Learn Microservices with Spring Boot book's microservice architecture project
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
Complete 4-part guide series
Step-by-step migration guide from Spring Boot 2.3 to Spring Boot 2.4 for the Learn Microservices with Spring Boot book's microservice architecture project
An extra chapter showing how to update the book's source code from Spring Boot 2.4 to 2.5.5 and Java 17
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
The extra chapter for the book's source code update from Spring Boot 2.6 to 2.7 with H2 database fixes and configuration improvements
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.
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!
Complete 4-part guide series
Step-by-step migration guide from Spring Boot 2.3 to Spring Boot 2.4 for the Learn Microservices with Spring Boot book's microservice architecture project
An extra chapter showing how to update the book's source code from Spring Boot 2.4 to 2.5.5 and Java 17
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
The extra chapter for the book's source code update from Spring Boot 2.6 to 2.7 with H2 database fixes and configuration improvements
Join hundreds of software architects and engineers getting practical insights delivered to their inbox.