Book Image

Learning Spring Boot 3.0 - Third Edition

By : Greg L. Turnquist
Book Image

Learning Spring Boot 3.0 - Third Edition

By: Greg L. Turnquist

Overview of this book

Spring Boot 3 brings more than just the powerful ability to build secure web apps on top of a rock-solid database. It delivers new options for testing, deployment, Docker support, and native images for GraalVM, along with ways to squeeze out more efficient usage of existing resources. This third 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. Next, you’ll familiarize yourself with the ability to go “native” and release using GraalVM. As you advance, you’ll explore reactive programming and get a taste of scalable web controllers and data operations. The book goes into detail about GraalVM native images and deployment, teaching you how to secure your application using both routes and method-based rules and enabling you to apply the lessons you’ve learned to any problem. If you want to gain a thorough understanding of building robust applications using the core functionality of Spring Boot, then this is the book for you. By the end of this Spring Boot book, you’ll be able to build an entire suite of web applications using Spring Boot and deploy them to any platform you need.
Table of Contents (17 chapters)
1
Part 1: The Basics of Spring Boot
3
Part 2: Creating an Application with Spring Boot
8
Part 3: Releasing an Application with Spring Boot
12
Part 4: Scaling an Application with Spring Boot

To get the most out of this book

Spring Boot 3.0 is built on Java 17. By using sdkman (https://sdkman.io), you can easily install the version of Java needed. In Chapter 8, Going Native with Spring Boot, we’ll include instructions on how to use sdkman to install a specific flavor of Java 17 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 17) (https://sdkman.io)

Windows, macOS, or Linux

Any modern IDE will help with writing code:

Windows, macOS, or Linux

VS Code and Spring Tool Suite are free. IntelliJ IDEA has a Community Edition and an Ultimate Edition. The Community Edition is free, but some of the Spring-specific features require purchasing the Ultimate Edition. There is a 30-day trial to give it a spin.

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

This book, however, isn’t the end of your journey into building Spring Boot apps. Check out my YouTube channel, Spring Boot Learning (http://bit.ly/3uSPLCz), where I publish videos all the time on Spring Boot and software engineering. There are also additional resources at https://springbootlearning.com to help you write better apps!