Spring in Action, Fifth Edition cover

Spring in Action, Fifth Edition

Rating 4.5
Chapters
25
Series
Asynchronous Community
ISBN
9787115527929

Tags

Summary

Spring in Action, Fifth Edition is the Chinese translation of Craig Walls's Spring in Action, Fifth Edition, translated by Zhang Weibin and published by Posts & Telecom Press in 2020. Centered on Spring 5.0 and Spring Boot 2.0, the book is divided into five parts totaling 19 chapters, plus one appendix. Part 1 (Chapters 1–5) covers the foundations of building Spring applications: getting started with Spring and auto-configuration, developing web applications with Spring MVC, accessing data with Spring Data, securing applications with Spring Security, and externalizing and managing configuration through configuration properties. Part 2 (Chapters 6–9) discusses integration: creating and consuming REST services, sending asynchronous messages with JMS and RabbitMQ, and building integration flows with Spring Integration. Part 3 (Chapters 10–12) explores reactive programming: understanding Reactive Streams and Reactor, developing reactive APIs with Spring WebFlux, and reactive persistence. Part 4 (Chapters 13–15) moves into cloud native: service registration and discovery, configuration management, and handling failure and latency. Part 5 (Chapters 16–19) is oriented toward production: Spring Boot Actuator, administering and monitoring applications, JMX monitoring, and deployment. The book is built around hands-on practice: readers progressively construct a complete, secure, database-backed web application while encountering microservices, service discovery, RESTful APIs, and deployment practices along the way.

Editor's review

如果你在找一个能把手带进 Spring 世界的向导,这本书的位置很难被替代。Craig Walls 的写法偏向示范:几乎每一章都会围绕一个可运行的小项目展开,把自动配置、Bean 装配、数据访问、安全、REST 这些看似零散的概念,串成一条从零到上线的完整路径。第 5 版把 Spring 5 与 Spring Boot 2 一并纳入,是近年中文技术书里更新得比较扎实的一本。 亮点有三个。一是结构清楚:五个部分分别对应“打基础—做集成—上响应式—拆微服务—备生产”,读者可以按需跳读,但顺着读下来对 Spring 的全貌最完整。二是内容新:WebFlux 响应式编程、Spring Cloud 服务发现、配置服务器这些当时还属于“新东西”的主题,都有独立章节和实做示例。三是可落地:从 Actuator 到部署章节,讲的都是上线前要真碰的问题,而不是停留在 API 演示。 需要提醒的是,本书基于 Spring Boot 2.x 编写,随着 Java 与 Spring 版本迭代,部分依赖坐标和 API 已经过时;建议对照官方文档与新版本来读,把书中代码当作思路载体而非最终样板。

Who it's for

A good fit for

  • 具备 Java 基础、想系统入门 Spring 与 Spring Boot 的开发者
  • 已经用过 Spring 但对自动配置、WebFlux、Spring Cloud 一知半解的在职工程师
  • 需要搭建企业级后端服务、要参考完整工程结构的后端开发人员
  • 希望从单体架构过渡到微服务与响应式方案的架构学习者

Not a good fit for

  • 完全没有 Java 或面向对象基础、想找入门语言教材的读者
  • 只关心前端技术、无需接触后端的开发者
  • 习惯复制粘贴现成代码、不愿动手敲示例练习的读者

Reading tips

  1. 先读完第 1~5 章并动手完成里面的 Web 应用,把自动配置与依赖注入理解透,再往后看集成与响应式。
  2. 各章示例建议亲自敲一遍并配合官方源码运行,遇到报错先查版本差异,这比只读书收获大得多。
  3. 第三、四部分可结合自己的需求跳读:做 API 服务重点看第 6、7、11 章,做微服务重点看第 13~15 章。
  4. 注意书基于 Spring Boot 2.x,阅读时对照当前官方文档核对依赖版本,把示例思路迁移到新版本上。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part 1 Foundations of Spring
  2. Chapter 1 Getting Started with Spring
  3. Chapter 2 Developing Web Applications
  4. Chapter 3 Working with Data
  5. Chapter 4 Securing Spring
  6. Chapter 5 Working with Configuration Properties
  7. Part 2 Spring Integration
  8. Chapter 6 Creating REST Services
  9. Chapter 7 Consuming REST Services
  10. Chapter 8 Sending Asynchronous Messages
  11. Chapter 9 Spring Integration
  12. Part 3 Reactive Spring
  13. Chapter 10 Understanding Reactive Programming
  14. Chapter 11 Developing Reactive APIs
  15. Chapter 12 Persisting Data Reactively
  16. Part 4 Cloud-Native Spring
  17. Chapter 13 Registering and Discovering Services
  18. Chapter 14 Managing Configuration
  19. Chapter 15 Handling Failure and Latency
  20. Part 5 Deploying Spring
  21. Chapter 16 Using Spring Boot Actuator
  22. Chapter 17 Administering Spring
  23. Chapter 18 Monitoring Spring with JMX
  24. Chapter 19 Deploying Spring
  25. Appendix Initializing Spring Applications

FAQ

这本书对应英文原版哪一版?
对应 Manning 出版社的 Spring in Action, Fifth Edition(2019 年出版),中文版由张卫滨翻译、人民邮电出版社 2020 年 2 月出版,ISBN 为 9787115527929,共 466 页。
书里的示例用什么版本?现在还能跑吗?
示例基于 JDK 8、Spring 5 和 Spring Boot 2.0,配套源码可在 GitHub 与异步社区下载。由于版本较老,部分依赖坐标与 API 已变化,建议升级到较新的 Boot 2.x 或 3.x 后再运行,重点理解思路而非照搬代码。
零基础 Java 的人能直接读吗?
不太好。本书假定你熟悉 Java 语法、Maven 或 Gradle 构建以及基本 Web 概念,直接从 Spring 的自动配置讲起。建议先补 Java 基础和一次 Servlet 或 HTTP 入门,再回来读会顺畅很多。
和《Spring实战》第 4 版相比主要更新了什么?
第 5 版整体切换到 Spring Boot 2.0 视角,新增响应式编程部分(Reactor、WebFlux、响应式持久化),并大幅扩充 Spring Cloud 服务发现、配置管理与容错内容,另含 Actuator 与部署相关章节。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

Craig Walls is the author of Spring in Action, Sixth Edition. Publicly available information about his nationality, dates of birth and death, educational background, and professional career is limited; what can be confirmed is that he takes part in spreading computer knowledge through technical writing. Judging from the work held in the collection, his subject area falls under general computing, with a specific focus on the practical application of the Spring framework. Positioned as a hands-on guide, the book typically centers on real development scenarios, emphasizing workable examples and step-by-step explanation rather than abstract theory. This writing style suits readers who want to turn framework knowledge into practical skills, and gives his work reference value for learners of the relevant technology. Overall, his writing is practice-oriented and clearly organized, serving developers' practical needs in understanding and using Spring.

More by the same author

Top rated in the same category