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 The Spring Pocket Guide
  • Table Of Contents Toc
The Spring Pocket Guide

The Spring Pocket Guide

By : Josh Long
close
close
The Spring Pocket Guide

The Spring Pocket Guide

By: Josh Long

Overview of this book

The Spring Pocket Guide is a fast-paced, practical tour of modern Spring development, from your first project to production-ready, AI-integrated systems. Starting with Spring Boot and Java 24+, you’ll build a complete microservice-style architecture around a fictional project. Along the way, you’ll explore HTTP endpoints, REST with HATEOAS, GraphQL schemas and resolvers, and high-performance gRPC services. You’ll integrate PostgreSQL (including vector support), consume external APIs with RestClient and declarative interface clients, and secure everything using Spring Security and OAuth 2. But this isn’t just about traditional web services. You’ll go further, building an AI-powered assistant with Spring AI, implementing retrieval-augmented generation (RAG), enabling tool calling, and exposing services through the emerging Model Context Protocol (MCP). The result is a modern, AI-ready Spring architecture built entirely on the “real web”, HTTP. By the end of this guide, you’ll understand how to build secure, scalable, cloud-native, and AI-integrated systems using Spring’s latest capabilities.
Table of Contents (24 chapters)
close
close
Lock Free Chapter
1
The Spring Pocket Guide
chevron up
2
Who this book is for
3
Get in touch
4
Hands-On Workshop
5
Bootcamp
6
Our map
7
The data and its database
8
HTTP
9
REST with Spring HATEOAS
10
GraphQL
11
gRPC
12
Web clients
13
Security
14
Toward a password-free future
15
Federated security
16
Building an assistant with Spring AI
17
Model Context Protocol
18
Scalability
19
GraalVM
20
Building a Docker image
21
Business use cases
22
Conclusion
23
Next steps
24
Index

The Spring Pocket Guide

Copyright © 2026 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Portfolio Director: Ashwin Nair

Relationship Lead: Aaron Lazar

Project Manager: Ruvika Rao

Content Engineer: Nithya Sadanandan

Technical Editor: Rohit Singh

Copy Editor: Safis Editing

Indexer: Rekha Nair

Proofreader: Nithya Sadanandan

Production Designer: Deepak Chavan

Production reference: 1130326

Published by Packt Publishing Ltd.

Grosvenor House

11 St Paul’s Square

Birmingham

B3 1RB, UK

ISBN 978-1-80760-179-9

www.packtpub.com

About the author

Josh Long is a Spring Developer Advocate at Broadcom and has served as the first Spring Developer Advocate since 2010. An engineer, open-source contributor, and educator, he has helped tens of millions of developers reach production with cloud-native technologies such as Spring Boot, Spring AI, Cloud Foundry, and Kubernetes through his articles, videos, books, blogs, courses, and conference talks. Josh contributes to numerous open-source projects, including Spring Boot, Spring AI, Spring Cloud, Spring Integration, Spring Batch, Spring Modulith, JobRunr, Flowable, Vaadin, and MyBatis. He also runs the Coffee Software YouTube channel, and is a Java Champion, Kotlin GDE (alumnus), Microsoft MVP, and lifelong student of new and emerging technologies.

Preface

Spring has long been the backbone of modern Java development, empowering teams to build secure, scalable, and production-ready applications with confidence. From startups to global enterprises, developers rely on Spring to move quickly without sacrificing architectural integrity. By combining powerful abstractions with thoughtful defaults, Spring allows you to focus on business value while the framework handles the heavy lifting.

In this nano book, you will take a fast-paced journey through the essentials of modern Spring web development. Starting with project setup using Spring Boot and the Initializr, you will explore how to build HTTP APIs, model data with Spring Data JDBC, and expose services using REST, HATEOAS, GraphQL, and gRPC. Along the way, you will integrate PostgreSQL, consume external APIs, and see how Spring’s component model keeps applications clean, modular, and maintainable.

You will also dive into production-critical concerns such as security with Spring Security and OAuth 2, API gateways, configuration management, scalability with virtual threads, and performance optimization using GraalVM native images. Finally, you will explore how Spring AI, vector databases, tool calling, and the Model Context Protocol (MCP) bring intelligent, AI-powered capabilities into modern applications.

By the end of this guide, you will understand not just how to build a Spring application, but also how to design systems that are secure, scalable, extensible, and ready for real-world production. Whether you are modernizing an existing system or starting fresh, Spring provides the foundation, and this book will help you use it with clarity and confidence.

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.
The Spring Pocket Guide
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