Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Spring Boot 3.0 Cookbook
  • Table Of Contents Toc
Spring Boot 3.0 Cookbook

Spring Boot 3.0 Cookbook

By : Felip Miguel Puig
4.8 (6)
close
close
Spring Boot 3.0 Cookbook

Spring Boot 3.0 Cookbook

4.8 (6)
By: Felip Miguel Puig

Overview of this book

In today's dynamic landscape, crafting robust and scalable Java web applications presents formidable challenges. Spring Boot emerges as the leading framework for web and microservices development, featuring a dynamic ecosystem and seamless integrations to address a spectrum of scenarios, from scaling apps on the cloud to deploying them to production. In this book, you’ll explore its streamlined, convention-over-configuration approach, simplifying application development. You’ll start by covering recipes showcasing Spring Boot's features. As you progress, you’ll understand how it helps streamline application development while staying ahead of technology trends. The book helps you grasp concepts effectively, explores basic REST APIs, shows you how to escalate to advanced scenarios, and tackle common cloud application challenges like security, scalability, performance optimization, and automated deployments. Dedicated sections are designed to help you stay ahead of the curve with recipes that delve into the latest trends such as containers, observability, native images, DevOps, test automation, and microservices, ensuring your applications align with evolving industry standards. By the end of this book, you’ll be able to build and automate the deployment of a scalable and high-performing distributed solution using Spring Boot 3.
Table of Contents (16 chapters)
close
close
Lock Free Chapter
1
Part 1:Web Applications and Microservices
6
Part 2: Database Technologies
9
Part 3: Application Optimization
12
Part 4: Upgrading to Spring Boot 3 from Previous Versions

Testing Spring Cloud Gateway

As the Spring Cloud Gateway rules are processed at runtime, they can sometimes be difficult to test. In addition to the rules themselves, the target applications must be up and running.

In this recipe, we’ll learn how to test Spring Cloud Gateway using the Spring Cloud Contract Stub Runner starter, which emulates the target services using the Wiremock library.

Getting ready

In this recipe, we’ll create tests for the Spring Cloud Gateway project we set up in the previous recipe. I’ve prepared a working version of Spring Cloud Gateway in case you haven’t set it up yet. You can find it in this book’s GitHub repository at https://github.com/PacktPublishing/Spring-Boot-3.0-Cookbook. The code to start this recipe can be found in the chapter4/recipe4-5/start folder. I’ve added all the projects that were used in the previous recipe – that is, the football, the albums, and the gateway projects – but...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Spring Boot 3.0 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon