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

To get the most out of this book

You will need the JDK 21 for all the chapters of this book. In Chapter 9, you will also need JDK 11 and JDK 17. I recommend using a tool such as SDKMAN! to install and configure the SDK on your computer. If you use Windows, you can use the JDK installer.

I used Maven as a dependency and build system for all samples. You can optionally install it on your computer, but all projects created in this book use the Maven Wrapper, which downloads all dependencies if needed.

If you are a Windows user, I recommend using Windows Subsystem for Linux (WSL), as some of the complementary tools used in this book are available in Linux, and the scripts available in the book’s GitHub repository are tested in Linux only. Indeed, I’m a Windows user and used WSL for all the samples prepared for this book.

I also recommend installing Docker, as it’s the simplest way to run some of the services integrated with this book, such as PostgreSQL. Docker is the best option to run a distributed system, composed of different applications talking to each other on your computer. In addition, most of the integration tests use Testcontainers, which requires Docker.

I tried to explain all samples without specific IDE requirements in this book. I used Visual Studio Code, primarily for its excellent integration with WSL, but you can use any other IDE of your preference, such as IntelliJ or Eclipse.

Software/hardware covered in the book

OS requirements

OpenJDK 21

Windows, macOS, or Linux

OpenJDK 11 and 17

Windows, macOS, or Linux

Docker

Windows (recommended with WSL integration), macOS, or Linux

Prometheus

On Docker (recommended) or natively on Windows, macOS, or Linux

Grafana

On Docker (recommended) or natively on Windows, macOS, or Linux

OpenZipkin

On Docker (recommended) or natively running Java on Windows, macOS, or Linux

PostgreSQL

On Docker (recommended) or natively on Windows, macOS, or Linux.

MongoDB

On Docker (recommended) or natively on Windows, macOS, or Linux

Apache Cassandra

On Docker (recommended) or natively on Linux

RabbitMQ

On Docker (recommended) or natively on Windows, macOS, or Linux

JMeter

Windows, macOS, or Linux

An IDE such as Visual Studio Code/IntelliJ

Windows, macOS, or Linux

If you are using the digital version of this book, we advise you to type the code yourself or access the code via the GitHub repository (link available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Download the example code files

You can download the example code files for this book from GitHub at https://github.com/PacktPublishing/Spring-Boot-3.0-Cookbook. If there’s an update to the code, it will be updated on the existing GitHub repository. Some recipes use the previous recipes as the starting point. In those cases, I provide a working version in the start subfolder of each recipe and the complete version in the end folder.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

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 €18.99/month. Cancel anytime