Spring Boot Cookbook
暫譯: Spring Boot 食譜

Alex Antonov

  • 出版商: Packt Publishing
  • 出版日期: 2015-09-28
  • 售價: $1,540
  • 貴賓價: 9.5$1,463
  • 語言: 英文
  • 頁數: 189
  • 裝訂: Paperback
  • ISBN: 1785284150
  • ISBN-13: 9781785284151
  • 相關分類: Java 相關技術
  • 已過版

相關主題

商品描述

Over 35 recipes to help you build, test, and run Spring applications using Spring Boot

About This Book

  • Learn to create different types of Spring Boot applications, configure behavior, and add custom components
  • Become more efficient in testing, deploying, and monitoring Spring Boot based applications
  • This is a practical guide that will help Spring developers to develop and deploy applications using Spring Boot

Who This Book Is For

If you are a Spring Developer who has good knowledge level and understanding of Spring Boot and application development and now want to learn efficient Spring Boot development techniques in order to make the existing development process more efficient, then this book is for you.

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

In Detail

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.

Style and approach

This book is a cohesive collection of recipes that provide developers with a set of connected guidelines on how to build, configure, and customize their application, starting from the design and development stages, all the way through testing, deployment, and production monitoring.

商品描述(中文翻譯)

**超過 35 個食譜,幫助您使用 Spring Boot 建立、測試和運行 Spring 應用程式**

## 本書介紹

- 學習創建不同類型的 Spring Boot 應用程式,配置行為,並添加自定義組件
- 提高測試、部署和監控基於 Spring Boot 的應用程式的效率
- 這是一本實用指南,將幫助 Spring 開發人員使用 Spring Boot 開發和部署應用程式

## 本書適合誰

如果您是一位對 Spring Boot 和應用程式開發有良好知識和理解的 Spring 開發人員,並且現在想學習高效的 Spring Boot 開發技術,以使現有的開發過程更高效,那麼這本書適合您。

## 您將學到什麼

- 從零開始創建 Spring Boot 應用程式
- 配置和調整網頁應用程式和容器
- 創建自定義的 Spring Boot 自動配置和啟動器
- 使用 Spring Boot Test 框架與 JUnit、Cucumber 和 Spock
- 配置和調整網頁應用程式和容器
- 將 Spring Boot 部署為自啟動的可執行檔和 Docker 容器
- 使用 DropWizard、Graphite 和 Dashing 監控數據

## 詳細內容

Spring Boot 是 Spring 的約定優於配置解決方案。這一特性使得創建 Spring 應用程式和服務變得非常簡單。Spring Boot 具有極大的可定制性和擴展性,專門設計用於簡化新 Spring 應用程式的開發。

本書將提供許多有關 Spring Boot 內部運作的詳細見解,以及整合構建複雜企業級應用程式所需的第三方框架和組件的提示和食譜。

本書首先概述了框架中包含的重要和有用的 Spring Boot 啟動器,並教您如何創建和添加自定義的 Servlet 過濾器、攔截器、轉換器、格式化器和屬性編輯器到 Spring Boot 網頁應用程式。接下來將涵蓋配置自定義路由規則和模式、添加額外的靜態資產路徑,以及添加和修改 Servlet 容器連接器和其他屬性,例如啟用 SSL。

接下來,本書將教您如何創建自定義的 Spring Boot 啟動器,並探索測試 Spring Boot 應用程式的不同技術。然後,本書將展示配置您的構建以生成 Docker 映像和自執行的二進位檔案以用於 Linux/OSX 環境的範例。

最後,本書將教您如何創建自定義健康指標,並通過 HTTP 和 JMX 訪問監控數據。

## 風格與方法

本書是一個連貫的食譜集合,為開發人員提供了一套相互關聯的指導方針,從設計和開發階段開始,一直到測試、部署和生產監控,幫助他們構建、配置和自定義應用程式。