• Neu
Xesquevixos / Karanam / Larsson | Learning Spring Boot 4 | E-Book | www.sack.de
E-Book

E-Book, Englisch, 538 Seiten

Xesquevixos / Karanam / Larsson Learning Spring Boot 4

Simplify the development of production-grade applications using Java and Spring
1. Auflage 2026
ISBN: 978-1-80742-710-8
Verlag: Packt Publishing
Format: EPUB
Kopierschutz: 0 - No protection

Simplify the development of production-grade applications using Java and Spring

E-Book, Englisch, 538 Seiten

ISBN: 978-1-80742-710-8
Verlag: Packt Publishing
Format: EPUB
Kopierschutz: 0 - No protection



Spring Boot 4 brings more than just the powerful ability to build secure web apps on top of a rock-solid database. It delivers Jackson integration, support for JSpecify, an enhanced retry mechanism, and updated actuator defaults, along with ways to squeeze out more efficient usage of existing resources.
This fourth edition of the bestseller starts off by helping you build a simple app, and then shows you how to secure, test, bundle, and deploy it to production. Then, you'll familiarize yourself with the ability to go 'native' and release using the latest version of GraalVM. As you advance, you'll explore reactive programming and get a taste of scalable web controllers and data operations.
Additionally, this edition includes brand-new topics, including virtual threads, concurrency, and observability, as well as building intelligent applications with Spring AI.
If you want to gain a thorough understanding of building robust, modern applications using the core functionality of Spring Boot, then this is the book for you. By the end, you'll be able to build an entire suite of web applications using Spring Boot and deploy them to any platform you need.

Xesquevixos / Karanam / Larsson Learning Spring Boot 4 jetzt bestellen!

Weitere Infos & Material


Preface


This book is designed for both novices and experienced Spring developers who want to learn how to build applications with Spring Boot 4. It will teach you how to build Java applications without wasting time on infrastructure and other tedious details. Instead, it will help you focus on building web apps on top of real databases, locked down with modern security practices. You will also learn how Spring Boot 4 supports REST APIs, data access, configuration, testing, observability, messaging, virtual threads, containers, Kubernetes, and AI-related capabilities.

On top of that, you'll discover multiple ways to carry an app to production using modern deployment, monitoring, and operational practices. If that's not enough, it even includes secret ways (okay, not really secret) at the end to squeeze more out of your existing servers (or cloud) by picking up and running with reactive programming, virtual threads, and other performance-oriented features available in the modern Spring ecosystem.

Who this book is for


This book is for both novices and experienced Spring developers looking to learn how to build applications without wasting time on infrastructure and other tedious details. Working knowledge of the Java programming language is assumed.

What this book covers


, , is where you discover the charm of Spring Boot with its fundamental features to work with you as you build your app.

, , teaches you how to craft the web layer for a Java app with ease, with both server-side and client-side options.

, , shows you how to get the most out of your database with Spring Data.

, , shows you how to use Spring Security's cutting-edge features to lock down your app from bad guys, inside and out.

, , teaches you how to build confidence in your systems through testing with mocks and embedded databases, and even using Testcontainers combined with real databases.

, , shows you ways to tune and adapt your app once it's built.

, , helps you discover multiple ways to take your app to production and put it in the hands of your users.

, , shows you how to speed up your app by leaps and bounds using native images that start in subsecond time and don't hog all your resources.

, , teaches you how easy it is to write reactive web controllers and how they can be your key to a more efficient app.

, , helps you discover how to query for data reactively using R2DBC and see how efficient your app can be.

, , shows you how virtual threads can simplify concurrent programming and help Spring applications handle blocking workloads more efficiently without moving everything to a reactive model.

, , teaches you how to build asynchronous applications using messaging patterns, event-driven communication, and Spring Boot's support for integrating services without tightly coupling them.

, , shows you how to understand what is happening inside your application using logs, metrics, traces, Actuator, Micrometer, OpenTelemetry, and other tools that help you monitor applications in production.

, , introduces you to building AI-powered applications with Spring, showing how modern AI capabilities can be integrated into Java applications in a practical and structured way.

, , summarizes the main changes and new features introduced in Spring Boot 4 and helps you understand how they affect the examples, dependencies, configuration options, and development practices used throughout the book.

To get the most out of this book


This book has been updated to Spring Boot 4.1.

Spring Boot 4.1 requires Java 17 or later and provides first-class support for Java 25. In this book, we use Java 25 throughout. By using sdkman (https://sdkman.io), you can easily install the version of Java needed. In , , we'll include instructions on how to use sdkman to install a specific flavor of Java that supports building native images for GraalVM. While it's possible to write code using a barebones text editor, any modern IDE (see the following list) will greatly enhance the coding experience. Check out the one that works best for you.

Software/hardware covered in the book

Operating system requirements

sdkman (for Java 25) (https://sdkman.io)

Windows, macOS, or Linux

Any modern IDE will help with writing code, including IntelliJ IDEA (https://springbootlearning.com/intellij-idea-try-it), VS Code (https://springbootlearning.com/vscode), and Spring Tool Suite (https://springbootlearning.com/sts)

Windows, macOS, or Linux

VS Code and Spring Tool Suite are free. IntelliJ IDEA is now available as a unified product: its core functionality remains free, while advanced tools and integrations require an Ultimate subscription. A 30-day trial is available if you want to try the Ultimate features.

Download the example code files


This book includes a complete downloadable code bundle containing all the example projects and files used throughout the chapters. We recommend downloading the bundle so you can follow along smoothly and experiment with the examples.

Use the bundle as a practical starting point. Modify it, extend it, and apply what you learn by creating your own variations as you progress through the chapters.

Get the code bundle


If you bought the book directly from Packt:

  1. Go to packtpub.com
  2. Click your profile picture and select Your Orders
  3. Find this book and click Download Code

If you bought this book from Amazon or any other channel partner:

  1. Go to packtpub.com/unlock or scan the following QR code:
  2. Search for this book
  3. Sign up or log in to your free Packt account
  4. Upload your proof of purchase and download the code bundle locally

Usage note: You're free to use and modify this code for personal learning and non-commercial projects.

Download the color images


We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/gbp/9781807427115.

Conventions used


There are a number of text conventions used throughout this book.

: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example: "Here, we will use , so create this file in the folder".

A block of code is set as follows:

Any command-line input or output is written as follows:

Bold: Indicates a new term, an important word, or words that you see on the screen. For instance, words in menus or dialog boxes appear in the text like this. For example: "Now click on the GENERATE button at the bottom of the screen."

Warnings or important notes appear like this.

Tips and tricks appear like this.

Get in touch


Feedback from our readers is always welcome.

General feedback: If you have questions about any aspect of this book or have any general feedback, please email us at and mention the book's title in the subject of your message.

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you reported this to us. Please visit http://www.packt.com/submit-errata,...



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.