Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring Boot 3.0 Cookbook

You're reading from   Spring Boot 3.0 Cookbook Proven recipes for building modern and robust Java web applications with Spring Boot

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835089491
Length 426 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mr. Felip Miguel Puig Mr. Felip Miguel Puig
Author Profile Icon Mr. Felip Miguel Puig
Mr. Felip Miguel Puig
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1:Web Applications and Microservices FREE CHAPTER
2. Chapter 1: Building RESTful APIs 3. Chapter 2: Securing Spring Boot Applications with OAuth2 4. Chapter 3: Observability, Monitoring, and Application Management 5. Chapter 4: Spring Cloud 6. Part 2: Database Technologies
7. Chapter 5: Data Persistence and Relational Database Integration with Spring Data 8. Chapter 6: Data Persistence and NoSQL Database Integration with Spring Data 9. Part 3: Application Optimization
10. Chapter 7: Finding Bottlenecks and Optimizing Your Application 11. Chapter 8: Spring Reactive and Spring Cloud Stream 12. Part 4: Upgrading to Spring Boot 3 from Previous Versions
13. Chapter 9: Upgrading from Spring Boot 2.x to Spring Boot 3.0 14. Index 15. Other Books You May Enjoy

Preparing the application

On each version of Spring Boot, some components are marked for deprecation, and normally, there is a proposal for change to avoid the deprecated components. As upgrading from Spring Boot 2 to Spring Boot 3 is a major change, upgrading to the latest Spring Boot 2 version is strongly recommended.

Before migrating an application to Spring Boot 3, the following preparation is recommended:

  • Upgrade the Spring Boot version to the latest 2.7.x available. At the time of writing this book, it is 2.7.18. This will facilitate the upgrade to Spring Boot 3
  • Update the Java version to Java 17, the minimum supported version in Spring Boot 3.
  • Address all deprecated components.

In this recipe, we’ll prepare a sample application that uses Spring 2.6 and Java 11. By the end of the recipe, the application will use Spring 2.7.18, Java 17, and all deprecated components and APIs will be addressed.

Getting ready

You will prepare an application...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime