Spring Boot is Spring's convention-over-configuration solution. This feature makes it easy to create Spring applications and services with absolute minimum fuss. Spring Boot has the great ability to be customized and enhanced, and is specifically designed to simplify development of a new Spring application.This book will provide many detailed insights about the inner workings of Spring Boot, as well as tips and recipes to integrate the third-party frameworks and components needed to build complex enterprise-scale applications.The book starts with an overview of the important and useful Spring Boot starters that are included in the framework, and teaches you to create and add custom Servlet Filters, Interceptors, Converters, Formatters, and PropertyEditors to a Spring Boot web application. Next it will cover configuring custom routing rules and patterns, adding additional static asset paths, and adding and modifying servlet container connectors and other properties such as enabling SSL.Moving on, the book will teach you how to create custom Spring Boot Starters, and explore different techniques to test Spring Boot applications. Next, the book will show you examples of configuring your build to produce Docker images and self-executing binary files for Linux/OSX environments.Finally, the book will teach you how to create custom health indicators, and access monitoring data via HTTP and JMX.What You Will Learn:
Create Spring Boot applications from scratch;
Configure and tune web applications and containers;
Create custom Spring Boot auto-configurations and starters;
Use Spring Boot Test framework with JUnit, Cucumber, and Spock;
Configure and tune web applications and containers;
Deploy Spring Boot as self-starting executables and Docker containers;
Monitor data using DropWizard, Graphite, and Dashing.Learn to create different types of Spring Boot applications, configure behavior, and add custom components.
Become more efficient in testing, deploying, and monitoring Spr
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A recipe-driven guide for Java developers who already know Spring and want to move from "it works" to "it's configured, tested, packaged, and monitored properly" in Spring Boot. Best read as a reference you dip into per task rather than a cover-to-cover tutorial.
【Book Arc】
- **Opening (~0%–10%)**: Sets the convention-over-configuration premise and lays out the full recipe map — starters, web customization, framework tuning, custom starters, testing, packaging/deployment, and health monitoring — so you know which chapter to reach for.
- **Early (~10%–30%)**: Front matter and preface establish the book's SDLC framing (build → configure → test → deploy → monitor) and introduce the starter ecosystem, including the `spring.provides` metadata that reveals what each starter transitively pulls in.
- **Middle (~30%–55%)**: The practical core begins — generating a project skeleton (e.g., via start.spring.io), reading the generated build file, and understanding how starters like `spring-boot-starter-jdbc` and `spring-boot-starter-data-jpa` expand into real dependencies, with runtime-scoped drivers left to autoconfiguration.
- **Late (~55%–85%)**: Moves into customization and hardening — custom servlet filters/interceptors/converters/formatters, routing and static-path tuning, embedded container customization and connectors (including SSL), writing your own autoconfiguration starters with conditional beans and `@Enable*` toggles, and testing with in-memory databases, Mockito, Cucumber, and Spock.
- **Ending (~85%–100%)**: Operational concerns — executable JARs, Docker images, self-executing binaries, the environment/property precedence hierarchy (property files, env vars, system properties, Consul/envconsul), and health/metrics exposure via HTTP, JMX, CRaSH, and Dropwizard-to-Graphite/Dashing pipelines.
【Key Takeaways】
- **Starters are metadata, not code** (Middle): Starter JARs contain no classes — just `pom.xml` and `spring.provides` — so understanding them means understanding transitive dependency resolution, not reading source.
- **Autoconfiguration keys off the classpath** (Middle): Boot decides what beans to create by detecting classes (e.g., the H2 driver) at launch; runtime-scoped dependencies are deliberate so compile time stays database-agnostic.
- **Custom starters are the enterprise extension point** (Late): The book treats autoconfiguration mechanics, conditional bean instantiation, and `@Enable*` toggles as the way to package reusable behavior for complex applications.
- **Web behavior is tunable at several layers** (Late): Filters, interceptors, converters, formatters, property editors, route matching, static paths, and container connectors each offer a distinct customization seam — pick the right layer rather than overloading one.
- **Testing spans unit, integration, and BDD** (Late): In-memory databases with fixtures and Mockito cover fast feedback; Cucumber and Spock cover behavior-driven styles — the book presents these as complementary, not competing.
- **Configuration precedence is a first-class concern** (Ending): Property files, environment variables, Java system properties, and Consul/envconsul form a hierarchy you must understand before deploying to multiple environments.
- **Deployment is build configuration** (Ending): Executable JARs, Docker images, and self-executing Linux/OSX binaries are produced by tuning the build, not by ad-hoc scripting.
- **Observability is built in via Actuator** (Ending): Custom health indicators, metrics emission, JMX, and remote shell access let you inspect a running app without bolting on external tooling first.
【Reading Tips】
- **Use the table of contents as an index**: This is a cookbook — jump to the recipe matching your current problem (e.g., "enabling SSL," "custom health indicator") rather than reading linearly.
- **Deep-read Chapters 4–6** (custom starters, testing, packaging): these carry the most transferable, non-obvious knowledge; skim Chapter 1 if you already use start.spring.io routinely.
- **Watch for version drift**: the book targets Spring Boot circa 2015 (Tomcat connectors, `EmbeddedServletContainerCustomizer`, CRaSH); verify API names against your Boot version before copying code.
- **Pair each recipe with its "How it works" section**: the value is in the mechanism (classpath detection, precedence order), which survives version changes better than the exact snippets.
【Coverage Limits】
The excerpts are dominated by front matter, preface, and table of contents; actual recipe bodies are only partially represented, so this guide describes the book's structure and themes rather than verifying individual code examples.
Excerpt 1
iners; Monitor data using DropWizard, Graphite, and Dashing.Learn to create different types of Spring Boot applications, configure behavior, and add custom c...
d better, more elegant, robust, and performant applications. I want to specially thank my wife, Alla, for constantly being there for me, for supporting me in...
h metrics and see the data using the http endpoints and JMX. It will then proceed with the overview and creation of the management commands for CRaSH and fin...
r to use Java Persistence API such as Hibernate, and others. spring-boot-starter-data-* Collection of data-* family starter components providing support for...
erty and they get translated into the same thing internally. If you want to connect to a regular (non-embedded) database, besides just having the appropriate...
ld should be generated, instead of being explicitly entered. The @ManyToOne and @ManyToMany annotations define the relational field associations that refer t...
more clarity about what kind of things are being configured. So, let's create a separate configuration class called WebConfiguration in the src/main/java/org...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Spring Boot Cookbook (Antonov A.) (z-library.sk, 1lib.sk, z-lib.sk)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Spring Boot Cookbook (Antonov A.) (z-library.sk, 1lib.sk, z-lib.sk)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Spring Boot Cookbook (Antonov A.) (z-library.sk, 1lib.sk, z-lib.sk)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
《Spring Boot Cookbook》围绕 Spring Boot 的约定优于配置理念展开,说明这一特性如何让 Spring 应用与服务的创建变得尽可能省心。书中强调 Spring Boot 具备良好的可定制与可增强能力,并且本身就是为简化新 Spring 应用的开发而设计的。作者 Antonov A. 在简介中明确表示,本书将提供许多关于 Spring Boot 内部运作机制的详细见解,读者由此可以期待从“会用”走向“理解它为什么这样工作”。
从现有材料看,全书的主线可以抓住三层。第一层是约定优于配置:这是 Spring Boot 的核心卖点,也是理解后续所有内容的前提,读者需要先明白框架替你做了哪些默认决定,才能谈得上定制。第二层是可定制与可增强:简介特别点出这一“great ability”,说明本书不会停留在入门搭建,而会涉及在默认之上做调整与扩展的思路。第三层是内部运作机制:作者承诺提供“many detailed insights about the inner workings”,这意味着内容偏向原理性剖析,...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment