
Spring 6 Recipe
Description
Book Introduction
Master everything about Spring 6 development with 137 practical examples!
Follow practical examples based on the latest Spring Framework 6 to quickly and efficiently develop web applications, cloud-native systems, and microservices.
You can learn a variety of topics, from reactive programming using the latest technologies such as Spring Native, Spring R2DBC, and WebFlux to transaction management, security, and deployment, through actual code.
Let's quickly start developing by applying the example code provided by GitHub to your project.
Follow practical examples based on the latest Spring Framework 6 to quickly and efficiently develop web applications, cloud-native systems, and microservices.
You can learn a variety of topics, from reactive programming using the latest technologies such as Spring Native, Spring R2DBC, and WebFlux to transaction management, security, and deployment, through actual code.
Let's quickly start developing by applying the example code provided by GitHub to your project.
- You can preview some of the book's contents.
Preview
index
CHAPTER 1 Spring Core
Recipe 1-1: Configuring POJOs with Java Configuration Classes
Recipe 1-2 Creating POJO instances by calling constructors
Recipe 1-3 Interacting with Other POJOs Using POJO References and Autowiring
Recipe 1-4 Autowiring POJOs with @Resource and @Inject
Recipe 1-5: Setting POJO Scope with @Scope
Recipe 1-6 Using Data from External Resources (Text, XML, Properties, Image Files)
Recipe 1-7: Handling Internationalized Text Messages for Different Locales Using Property Files
Customizing POJO Initialization/Termination with Recipe 1-8 Annotations
Recipe 1-9: Creating an empty postprocessor to validate/modify POJOs
Recipe 1-10: Creating POJOs with Factories (Static/Instance Factory Methods, Spring Factory Beans)
Recipe 1-11: Loading Other POJOs Using Spring Environments and Profiles
Recipe 1-12: Telling POJOs About IoC Container Resources
Recipe 1-13: Aspect-Oriented Programming with Annotations
Recipe 1-14 Accessing Join Point Information
Recipe 1-15: Prioritizing Aspects with @Order
Recipe 1-16 Reusing Aspect Pointcut Definitions
Recipe 1-17 Writing AspectJ Pointcut Expressions
Recipe 1-18: Applying AOP Introduction to POJOs
Recipe 1-19: Introducing State Information into POJOs with AOP
Recipe 1-20: Load-Time Weaving of AspectJ Aspects
Recipe 1-21: Configuring Aspects in Spring
Recipe 1-22: Injecting POJOs into Domain Objects with AOP
Recipe 1-23: Applying Concurrency with Spring TaskExecutor
Recipe 1-24 Communicating Application Events Between POJOs
Recipe 1-25 Creating and Registering Beans Functionally
In conclusion
CHAPTER 2 Spring MVC
Recipe 2-1: Developing a Simple Web Application with Spring MVC
Recipe 2-2 Mapping Requests with @RequestMapping
Recipe 2-3: Intercepting Requests with Handler Interceptors
Recipe 2-4 Interpreting User Locales
Recipe 2-5: Externalizing Locale-Specific Text Messages
Recipe 2-6 Interpreting Views by Name
Recipe 2-7: Using Views and Content Negotiation
Mapping Exceptions to Recipe 2-8 Views
Recipe 2-9 Handling Forms in the Controller
Recipe 2-10: Validating Beans with Annotations
Recipe 2-11 Creating Excel and PDF Views
Recipe 2-12 Handling Asynchronous Requests in a Controller
In conclusion
CHAPTER 3 Spring MVC: REST Services
Recipe 3-1 Publishing XML as a REST Service
Recipe 3-2 Publishing JSON with a REST Service
Recipe 3-3 Retrieving a Payload with a REST Controller
Recipe 3-4 Accessing Spring REST Services
Publishing Recipe 3-5 RSS/Atom Feeds
Recipe 3-6 Response Output
In conclusion
CHAPTER 4 Spring WebFlux
Recipe 4-1: Developing Reactive Applications with Spring WebFlux
Recipe 4-2 Publishing/Consuming JSON with a Reactive REST Service
Recipe 4-3: Handling Exceptions in Reactive Controllers
Recipe 4-4: Handling Forms with Reactive Controllers
Recipe 4-5 Asynchronous Web Client
Recipe 4-6: Writing a Reactive Handler Function
In conclusion
CHAPTER 5 Spring Security
Recipe 5-1: Enforcing URL Access Security
Recipe 5-2 Logging into the Web Application
Recipe 5-3 User Authentication
Recipe 5-4 Determining Access Control
Recipe 5-5: Enforcing Method Call Security
Securing Recipe 5-6 Views
Recipe 5-7: Securing Domain Objects
Recipe 5-8: Securing Your Spring WebFlux Application
In conclusion
CHAPTER 6 DATA ACCESS
Recipe 6-1 Configuring Using JDBC Directly
Recipe 6-2 Setting up the application database
Recipe 6-3 Working with DBs with JDBC Templates
Recipe 6-4: Querying a DB with a JDBC Template
Recipe 6-5: Creating a Simple JDBC Template
Recipe 6-6 Using Named Parameters in JDBC Templates
Recipe 6-7: Handling Exceptions in the Spring JDBC Framework
Recipe 6-8: Using an ORM Framework Directly
Recipe 6-9: Configuring an ORM Resource Factory in Spring
Recipe 6-10: Saving Objects with a Hibernate Context Session
Recipe 6-11: Saving Objects by Injecting a JPA Context
Recipe 6-12 Simplifying JPA Code with Spring Data JPA
Recipe 6-13: Accessing Reactive Databases with R2DBC
In conclusion
CHAPTER 7 Spring Transaction Management
Recipe 7-1 Transaction Management Issues
Recipe 7-2 Choosing a Transaction Manager Implementation
Recipe 7-3: Managing Transactions Programmatically Using the Transaction Manager API
Recipe 7-4: Managing Transactions Programmatically Using Transaction Templates
Recipe 7-5: Declarative Transaction Management with @Transactional
Recipe 7-6 Setting Transaction Propagation Properties
Recipe 7-7 Setting Transaction Isolation Properties
Recipe 7-8 Setting Transaction Rollback Properties
Recipe 7-9: Setting Transaction Timeout/Read-Only Properties
Recipe 7-10: Managing Transactions with Load-Time Weaving
In conclusion
CHAPTER 8 Spring Batch
Recipe 8-1 Runtime Metadata Model
Recipe 8-2: Setting Up Spring Batch Infrastructure
Recipe 8-3 Reading and Writing Data
Recipe 8-4: Writing Custom ItemWriters and ItemReaders
Recipe 8-5: Processing Input Before Output
Recipe 8-6 Applying Various Transaction-Based Processing Methods
Retry Recipe 8-7
Controlling the execution of recipe step 8-8
Run Recipe 8-9 Job
Recipe 8-10 Job Parameterization
In conclusion
CHAPTER 9 NoSQL Spring Data Access
Recipe 9-1 Using MongoDB
Recipe 9-2 Using Ladies
Recipe 9-3 Using Neo4j
Recipe 9-4 Using Couchbase
In conclusion
CHAPTER 10 Spring Java Enterprise Services and Remoting Technologies
Recipe 10-1 Registering Spring POJOs as JXM MBeans
Recipe 10-2 Sending and Receiving JMX Notifications
Recipe 10-3: Exposing/Accessing Remote JMX MBeans in Spring
Recipe 10-4 Send an email from Spring
Recipe 10-5: Scheduling Work with Spring Quartz
Recipe 10-6 Scheduling Work with Spring
Recipe 10-7: Introducing a SOAP Web Service with a Priority First
Recipe 10-8: Exposing/Calling a SOAP Web Service with Spring Web Services
Recipe 10-9: Developing SOAP Web Services with Spring Web Services and XML Marshalling
Recipe 10-10 Investigating what happens when an application starts with JFR
Observe the application with a 10-11 micrometer recipe
In conclusion
CHAPTER 11 Spring Messaging
Recipe 11-1 Sending and Receiving JMS Messages with Spring
Recipe 11-2 Converting JMS Messages
Recipe 11-3 Managing JMS Transactions
Recipe 11-4: Writing Message-Driven POJOs in Spring
Recipe 11-5 JMS Connection Caching/Pooling
Recipe 11-6 Sending and Receiving Spring AMQP Messages
Recipe 11-7 Sending and Receiving Messages with Spring Kafka
In conclusion
CHAPTER 12 Spring Integration
Recipe 12-1 Connecting Systems with EAI
Recipe 12-2 Connecting Two Systems with JMS
Recipe 12-3: Getting Context Information from Spring Integration Messages
Recipe 12-4 Linking Two Systems with a File System
Recipe 12-5 Converting Message Types
Recipe 12-6: Error Handling with Spring Integration
Recipe 12-7: Handling Linked Branches with Splitters and Aggregators
Recipe 12-8 Conditional Routing with a Router
Recipe 12-9: Staging Events with Spring Batch
Recipe 12-10 Using the Gateway
In conclusion
CHAPTER 13 Spring Testing
Recipe 13-1: Writing Tests with JUnit and TestNG
Recipe 13-2 Writing Unit/Integration Tests
Recipe 13-3 Managing Application Context in Integration Tests
Recipe 13-4 Injecting Test Fixtures into Integration Tests
Recipe 13-5 Managing Transactions in Integration Tests
Recipe 13-6: Integration Testing of Spring MVC Controllers
Recipe 13-7 Testing REST Client Integration
Recipe 13-8 Integration Testing with TestContainer
In conclusion
CHAPTER 14 Caching
Recipe 14-1: Cache with Caffeine
Recipe 14-2 Caching with the Spring Cache Abstraction
Recipe 14-3: Declarative Caching with AOP
Recipe 14-4 Configuring a Custom Key Generator
Recipe 14-5 Adding/Removing Cache Objects
Recipe 14-6 Synchronizing the Cache of Transactional Resources
Recipe 14-7 Using Ladies as a Cache Provider
In conclusion
Recipe 1-1: Configuring POJOs with Java Configuration Classes
Recipe 1-2 Creating POJO instances by calling constructors
Recipe 1-3 Interacting with Other POJOs Using POJO References and Autowiring
Recipe 1-4 Autowiring POJOs with @Resource and @Inject
Recipe 1-5: Setting POJO Scope with @Scope
Recipe 1-6 Using Data from External Resources (Text, XML, Properties, Image Files)
Recipe 1-7: Handling Internationalized Text Messages for Different Locales Using Property Files
Customizing POJO Initialization/Termination with Recipe 1-8 Annotations
Recipe 1-9: Creating an empty postprocessor to validate/modify POJOs
Recipe 1-10: Creating POJOs with Factories (Static/Instance Factory Methods, Spring Factory Beans)
Recipe 1-11: Loading Other POJOs Using Spring Environments and Profiles
Recipe 1-12: Telling POJOs About IoC Container Resources
Recipe 1-13: Aspect-Oriented Programming with Annotations
Recipe 1-14 Accessing Join Point Information
Recipe 1-15: Prioritizing Aspects with @Order
Recipe 1-16 Reusing Aspect Pointcut Definitions
Recipe 1-17 Writing AspectJ Pointcut Expressions
Recipe 1-18: Applying AOP Introduction to POJOs
Recipe 1-19: Introducing State Information into POJOs with AOP
Recipe 1-20: Load-Time Weaving of AspectJ Aspects
Recipe 1-21: Configuring Aspects in Spring
Recipe 1-22: Injecting POJOs into Domain Objects with AOP
Recipe 1-23: Applying Concurrency with Spring TaskExecutor
Recipe 1-24 Communicating Application Events Between POJOs
Recipe 1-25 Creating and Registering Beans Functionally
In conclusion
CHAPTER 2 Spring MVC
Recipe 2-1: Developing a Simple Web Application with Spring MVC
Recipe 2-2 Mapping Requests with @RequestMapping
Recipe 2-3: Intercepting Requests with Handler Interceptors
Recipe 2-4 Interpreting User Locales
Recipe 2-5: Externalizing Locale-Specific Text Messages
Recipe 2-6 Interpreting Views by Name
Recipe 2-7: Using Views and Content Negotiation
Mapping Exceptions to Recipe 2-8 Views
Recipe 2-9 Handling Forms in the Controller
Recipe 2-10: Validating Beans with Annotations
Recipe 2-11 Creating Excel and PDF Views
Recipe 2-12 Handling Asynchronous Requests in a Controller
In conclusion
CHAPTER 3 Spring MVC: REST Services
Recipe 3-1 Publishing XML as a REST Service
Recipe 3-2 Publishing JSON with a REST Service
Recipe 3-3 Retrieving a Payload with a REST Controller
Recipe 3-4 Accessing Spring REST Services
Publishing Recipe 3-5 RSS/Atom Feeds
Recipe 3-6 Response Output
In conclusion
CHAPTER 4 Spring WebFlux
Recipe 4-1: Developing Reactive Applications with Spring WebFlux
Recipe 4-2 Publishing/Consuming JSON with a Reactive REST Service
Recipe 4-3: Handling Exceptions in Reactive Controllers
Recipe 4-4: Handling Forms with Reactive Controllers
Recipe 4-5 Asynchronous Web Client
Recipe 4-6: Writing a Reactive Handler Function
In conclusion
CHAPTER 5 Spring Security
Recipe 5-1: Enforcing URL Access Security
Recipe 5-2 Logging into the Web Application
Recipe 5-3 User Authentication
Recipe 5-4 Determining Access Control
Recipe 5-5: Enforcing Method Call Security
Securing Recipe 5-6 Views
Recipe 5-7: Securing Domain Objects
Recipe 5-8: Securing Your Spring WebFlux Application
In conclusion
CHAPTER 6 DATA ACCESS
Recipe 6-1 Configuring Using JDBC Directly
Recipe 6-2 Setting up the application database
Recipe 6-3 Working with DBs with JDBC Templates
Recipe 6-4: Querying a DB with a JDBC Template
Recipe 6-5: Creating a Simple JDBC Template
Recipe 6-6 Using Named Parameters in JDBC Templates
Recipe 6-7: Handling Exceptions in the Spring JDBC Framework
Recipe 6-8: Using an ORM Framework Directly
Recipe 6-9: Configuring an ORM Resource Factory in Spring
Recipe 6-10: Saving Objects with a Hibernate Context Session
Recipe 6-11: Saving Objects by Injecting a JPA Context
Recipe 6-12 Simplifying JPA Code with Spring Data JPA
Recipe 6-13: Accessing Reactive Databases with R2DBC
In conclusion
CHAPTER 7 Spring Transaction Management
Recipe 7-1 Transaction Management Issues
Recipe 7-2 Choosing a Transaction Manager Implementation
Recipe 7-3: Managing Transactions Programmatically Using the Transaction Manager API
Recipe 7-4: Managing Transactions Programmatically Using Transaction Templates
Recipe 7-5: Declarative Transaction Management with @Transactional
Recipe 7-6 Setting Transaction Propagation Properties
Recipe 7-7 Setting Transaction Isolation Properties
Recipe 7-8 Setting Transaction Rollback Properties
Recipe 7-9: Setting Transaction Timeout/Read-Only Properties
Recipe 7-10: Managing Transactions with Load-Time Weaving
In conclusion
CHAPTER 8 Spring Batch
Recipe 8-1 Runtime Metadata Model
Recipe 8-2: Setting Up Spring Batch Infrastructure
Recipe 8-3 Reading and Writing Data
Recipe 8-4: Writing Custom ItemWriters and ItemReaders
Recipe 8-5: Processing Input Before Output
Recipe 8-6 Applying Various Transaction-Based Processing Methods
Retry Recipe 8-7
Controlling the execution of recipe step 8-8
Run Recipe 8-9 Job
Recipe 8-10 Job Parameterization
In conclusion
CHAPTER 9 NoSQL Spring Data Access
Recipe 9-1 Using MongoDB
Recipe 9-2 Using Ladies
Recipe 9-3 Using Neo4j
Recipe 9-4 Using Couchbase
In conclusion
CHAPTER 10 Spring Java Enterprise Services and Remoting Technologies
Recipe 10-1 Registering Spring POJOs as JXM MBeans
Recipe 10-2 Sending and Receiving JMX Notifications
Recipe 10-3: Exposing/Accessing Remote JMX MBeans in Spring
Recipe 10-4 Send an email from Spring
Recipe 10-5: Scheduling Work with Spring Quartz
Recipe 10-6 Scheduling Work with Spring
Recipe 10-7: Introducing a SOAP Web Service with a Priority First
Recipe 10-8: Exposing/Calling a SOAP Web Service with Spring Web Services
Recipe 10-9: Developing SOAP Web Services with Spring Web Services and XML Marshalling
Recipe 10-10 Investigating what happens when an application starts with JFR
Observe the application with a 10-11 micrometer recipe
In conclusion
CHAPTER 11 Spring Messaging
Recipe 11-1 Sending and Receiving JMS Messages with Spring
Recipe 11-2 Converting JMS Messages
Recipe 11-3 Managing JMS Transactions
Recipe 11-4: Writing Message-Driven POJOs in Spring
Recipe 11-5 JMS Connection Caching/Pooling
Recipe 11-6 Sending and Receiving Spring AMQP Messages
Recipe 11-7 Sending and Receiving Messages with Spring Kafka
In conclusion
CHAPTER 12 Spring Integration
Recipe 12-1 Connecting Systems with EAI
Recipe 12-2 Connecting Two Systems with JMS
Recipe 12-3: Getting Context Information from Spring Integration Messages
Recipe 12-4 Linking Two Systems with a File System
Recipe 12-5 Converting Message Types
Recipe 12-6: Error Handling with Spring Integration
Recipe 12-7: Handling Linked Branches with Splitters and Aggregators
Recipe 12-8 Conditional Routing with a Router
Recipe 12-9: Staging Events with Spring Batch
Recipe 12-10 Using the Gateway
In conclusion
CHAPTER 13 Spring Testing
Recipe 13-1: Writing Tests with JUnit and TestNG
Recipe 13-2 Writing Unit/Integration Tests
Recipe 13-3 Managing Application Context in Integration Tests
Recipe 13-4 Injecting Test Fixtures into Integration Tests
Recipe 13-5 Managing Transactions in Integration Tests
Recipe 13-6: Integration Testing of Spring MVC Controllers
Recipe 13-7 Testing REST Client Integration
Recipe 13-8 Integration Testing with TestContainer
In conclusion
CHAPTER 14 Caching
Recipe 14-1: Cache with Caffeine
Recipe 14-2 Caching with the Spring Cache Abstraction
Recipe 14-3: Declarative Caching with AOP
Recipe 14-4 Configuring a Custom Key Generator
Recipe 14-5 Adding/Removing Cache Objects
Recipe 14-6 Synchronizing the Cache of Transactional Resources
Recipe 14-7 Using Ladies as a Cache Provider
In conclusion
Detailed image

Publisher's Review
The Complete Spring 6 Practical Guide!
137 recipes packed with cutting-edge techniques and solutions.
The Spring Framework is the de facto standard for enterprise application development worldwide and is the most widely used Java framework.
Its dependency injection, annotation-based configuration, and vast ecosystem enable its widespread use across everything from web services to microservices, cloud, and AI applications.
To stay competitive in today's fast-paced environment, a deep understanding of the latest versions and new features of Spring is essential.
This book is a comprehensive revision of the Spring 5 Recipes, published in 2018, using the latest technology to meet these needs.
We provide core Spring 6 features and practical applications, such as Jakarta EE migration, GraalVM AOT, and R2DBC, in the format of [Problem] → [Solution] → [Solutions], so you can quickly solve problems you encounter in the field.
If you're a beginner or intermediate Java or Spring developer, this book will solidify your fundamentals and provide a true solution for quickly applying the latest technologies to your work.
Key Contents
● Fully reflects the latest Spring 6 technologies, including GraalVM AOT and R2DBC.
● Introduction to practical features such as Spring Core, MVC, REST, WebFlux, security, data access, deployment, messaging, integration, and test strategies.
● Provides code-centric examples and solutions that can be applied immediately to each problem situation.
● Guide to performance optimization techniques such as native execution and reactive data processing based on GraalVM
Target audience
● Intermediate or higher level Java developer with basic Spring skills
● Backend and web application developers looking for a reference book focused on solving practical problems
● Developers who want to upgrade existing projects or capabilities to the latest Spring 6 technology
137 recipes packed with cutting-edge techniques and solutions.
The Spring Framework is the de facto standard for enterprise application development worldwide and is the most widely used Java framework.
Its dependency injection, annotation-based configuration, and vast ecosystem enable its widespread use across everything from web services to microservices, cloud, and AI applications.
To stay competitive in today's fast-paced environment, a deep understanding of the latest versions and new features of Spring is essential.
This book is a comprehensive revision of the Spring 5 Recipes, published in 2018, using the latest technology to meet these needs.
We provide core Spring 6 features and practical applications, such as Jakarta EE migration, GraalVM AOT, and R2DBC, in the format of [Problem] → [Solution] → [Solutions], so you can quickly solve problems you encounter in the field.
If you're a beginner or intermediate Java or Spring developer, this book will solidify your fundamentals and provide a true solution for quickly applying the latest technologies to your work.
Key Contents
● Fully reflects the latest Spring 6 technologies, including GraalVM AOT and R2DBC.
● Introduction to practical features such as Spring Core, MVC, REST, WebFlux, security, data access, deployment, messaging, integration, and test strategies.
● Provides code-centric examples and solutions that can be applied immediately to each problem situation.
● Guide to performance optimization techniques such as native execution and reactive data processing based on GraalVM
Target audience
● Intermediate or higher level Java developer with basic Spring skills
● Backend and web application developers looking for a reference book focused on solving practical problems
● Developers who want to upgrade existing projects or capabilities to the latest Spring 6 technology
GOODS SPECIFICS
- Date of issue: September 1, 2025
- Page count, weight, size: 980 pages | 183*235*38mm
- ISBN13: 9791169214254
- ISBN10: 1169214258
You may also like
카테고리
korean
korean