Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorCraig Walls

If you need to learn Spring, look no further than this widely beloved and comprehensive guide! Fully revised for Spring 5.3, and packed with interesting real-world examples to get your hands dirty with Spring. In Spring in Action, 6th Edition you will learn: • Building reactive applications • Relational and NoSQL databases • Integrating via HTTP and REST-based services, and sand reactive RSocket services • Reactive programming techniques • Deploying applications to traditional servers and containers • Securing applications with Spring Security Over the years, Spring in Action has helped tens of thousands of developers get a major productivity boost from Spring. This new edition of the classic bestseller covers all of the new features of Spring 5.3 and Spring Boot 2.4 along with examples of reactive programming, Spring Security for REST Services, and bringing reactivity to your databases. You'll also find the latest Spring best practices, including Spring Boot for application setup and configuration. About the technology Spring is required knowledge for Java developers! Why? Th is powerful framework eliminates a lot of the tedious configuration and repetitive coding tasks, making it easy to build enterprise-ready, production-quality software. The latest updates bring huge productivity boosts to microservices, reactive development, and other modern application designs. It’s no wonder over half of all Java developers use Spring. About the book Spring in Action, Sixth Edition is a comprehensive guide to Spring’s core features, all explained in Craig Walls’ famously clear style. You’ll put Spring into action as you build a complete database-backed web app step-by-step. This new edition covers both Spring fundamentals and new features such as reactive flows, Kubernetes integration, and RSocket. Whether you’re new to Spring or leveling up to Spring 5.3, make this classic bestseller your bible! What's inside • Relational and NoSQL databases • Integrating via RSocket and RES

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
# Spring in Action, 6th Edition — Reading Guide ## 【One-Line Pitch】 The definitive hands-on guide to Spring 5.3 and Spring Boot 2.4, taking you from your first Spring application through reactive programming, security, and cloud deployment—ideal for Java developers who want to build production-ready enterprise software with less boilerplate. ## 【Book Arc】 - **Opening (~0%–11%)**: Introduces Spring's core value proposition—simplifying enterprise Java development—and walks through initializing your first Spring Boot project, understanding project structure, and writing a basic web controller with testing. - **Early (~22%–33%)**: Covers foundational Spring development: building web applications with controllers and form validation, working with relational data via JDBC/Spring Data JPA, and nonrelational data with Cassandra and MongoDB. - **Middle (~44%–56%)**: Focuses on securing applications with Spring Security (authentication, request protection, CSRF), managing configuration properties and profiles, and then shifts to integration—creating and consuming REST services, plus OAuth 2 security for APIs. - **Middle (~56%–67%)**: Explores asynchronous messaging (JMS, RabbitMQ, Kafka) and Spring Integration for enterprise integration patterns like channels, filters, routers, and splitters. - **Late (~67%–78%)**: Dives into reactive programming with Reactor, building reactive APIs with Spring WebFlux, reactive data persistence (R2DBC, MongoDB, Cassandra), and the RSocket protocol for efficient communication. - **Ending (~78%–100%)**: Covers production readiness: Spring Boot Actuator for monitoring, Spring Boot Admin for administration, JMX for management, and deployment options including executable JARs, container images, Kubernetes, and WAR files. ## 【Key Takeaways】 - **Spring Boot eliminates configuration overhead** (Early): Autoconfiguration and starter dependencies let you focus on business logic rather than plumbing—the book demonstrates this by getting a working app running in chapter one. - **Spring Data simplifies database access** (Early): Repository interfaces abstract away JDBC boilerplate, with support for relational (JPA, JDBC) and NoSQL (Cassandra, MongoDB) databases through consistent patterns. - **Spring Security provides layered protection** (Early): From in-memory authentication to custom user services, request-level security, and method-level annotations—plus OAuth 2 for REST APIs. - **Configuration properties and profiles enable environment flexibility** (Middle): Externalize settings, create typed configuration holders, and activate profile-specific properties for different deployment environments. - **Asynchronous messaging decouples services** (Middle): JMS, RabbitMQ, and Kafka integration patterns let you send and receive messages without blocking, improving scalability and resilience. - **Reactive programming handles high concurrency efficiently** (Late): Reactor's Flux and Mono types, combined with WebFlux, enable non-blocking APIs that scale better under load than traditional servlet-based approaches. - **RSocket offers a modern communication protocol** (Late): Supports multiple interaction models (request-response, request-stream, fire-and-forget, bidirectional) over TCP or WebSocket for efficient service-to-service communication. - **Actuator and deployment tools make production operations manageable** (Ending): Built-in health checks, metrics, and custom endpoints, plus container/Kubernetes deployment support, bridge development and operations. ## 【Reading Tips】 - **Skim the first chapter** if you're already familiar with Spring Boot basics—it covers project initialization and structure, but the real value starts with chapter 2's web development patterns. - **Deep-read chapters 3–4** on data persistence; these establish patterns (repository interfaces, entity annotations) that recur throughout the book and are essential for real projects. - **Pay special attention to chapter 11** (Reactor) before tackling reactive chapters—understanding Flux/Mono operations is prerequisite to WebFlux and reactive data persistence. - **Treat chapters 15–18 as reference material** for production concerns; skim to know what's available, then return when you need Actuator endpoints, JMX, or deployment guidance. - **Follow along with the code examples**—the book builds a complete application incrementally, and hands-on practice is the fastest way to internalize Spring's conventions. ## 【Coverage Limits】 This guide synthesizes the book's table of contents, preface, and endorsements; detailed code examples, specific API signatures, and step-by-step implementation walkthroughs are not covered here. ##
Excerpt 1
书名: Spring in Action, 6th Edition (Final Release) (Craig Walls) (Z-Library) 作者: Craig Walls If you need to learn Spring, look no further than this widely bel...
View in text
Page 7
g.com ©2022 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in...
View in text
Page 11
4 Designing the view 38 2.2 Processing form submission 41 2.3 Validating form input 49 Declaring validation rules 50 ■ Performing validation at form binding...
View in text
Page 12
nfiguring logging 146 ■ Using special property values 148 6.2 Creating your own configuration properties 148 Defining configuration property holders 151 ■ De...
View in text
Excerpt 5
forget messages 378 Sending messages bidirectionally 379 14.3 Transporting RSocket over WebSocket 382 CONTENTSxivPART 4 DEPLOYED SPRING ........................
View in text
Excerpt 6
you. I look forward to seeing what you create with Spring! acknowledgments One of the most amazing things that Spring and Spring Boot do is automatically pro...
View in text
Tags
AI categories
JavaBackendFramework
ISBN: 1617297577
Publish Year: 2022
Language: English
Pages: 520
File Format: PDF
File Size: 28.0 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…