Learning Spring Boot
暫譯: 學習 Spring Boot
Greg L. Turnquist
- 出版商: Packt Publishing
- 出版日期: 2014-11-29
- 售價: $1,860
- 貴賓價: 9.5 折 $1,767
- 語言: 英文
- 頁數: 252
- 裝訂: Paperback
- ISBN: 1784393029
- ISBN-13: 9781784393021
-
相關分類:
Java 相關技術
海外代購書籍(需單獨結帳)
相關主題
商品描述
About This Book
- Create Spring-powered, production-grade applications and services with minimal fuss
- Support multiple environments with one artifact, and add production-grade support with features like custom metrics to track the number of messages published and consumed
- Each chapter introduces a different area that Spring Boot tackles and explains how to tweak your apps through different properties
Who This Book Is For
This book is for both novice developers in general and experienced Spring developers. It will teach you how to override Spring Boot's opinions and frees you from the need to define complicated configurations.
What You Will Learn
- Use Spring Boot's CLI tool to build rapid Groovy-based apps without even touching a build tool
- Craft a Spring JMS app with ActiveMQ
- Work with multiple database configurations using Spring Data JPA in development and production as well as Spring Data MongoDB
- Find out exactly what beans Spring Boot is creating for you, and why it decided to do so
- Secure your app at the URL and method levels
- Use Spring Data REST to export your Spring Data repositories to support independent clients
- Configure the embedded Tomcat servlet engine to use SSL and see how it automatically uses HSTS
In Detail
This practical, accessible guide helps you get up and running fast with Spring Boot. This book starts by crafting a Spring MVC application using the Spring stack on top of Apache Tomcat, with little configuration on from your end. You will also learn how to write both JUnit and Spock test cases. Then, you'll pull back the curtain and see how Spring Boot works by using Spring Messaging (JMS and AMQP) as well as creating custom metrics, custom information, and custom CLI commands aimed at production environments. In the last two chapters, you'll see how Spring Boot supports everyday situations we all deal with. You will learn how to create multiple configurations inside your app that can interact with different data stores.
By the end of the book, you'll have a good understanding of how Spring Boot works, how it manages low-level infrastructure, and how to start out production-grade apps with built-in support tools as well as custom ones.
商品描述(中文翻譯)
學習如何使用 Spring Boot 更快地構建應用程式
本書介紹
- 以最小的麻煩創建 Spring 驅動的生產級應用程式和服務
- 使用一個工件支持多個環境,並通過自定義指標等功能添加生產級支持,以跟踪發佈和消費的消息數量
- 每一章介紹 Spring Boot 解決的不同領域,並解釋如何通過不同的屬性調整您的應用程式
本書適合誰
本書適合一般的初學者開發者和有經驗的 Spring 開發者。它將教您如何覆蓋 Spring Boot 的預設設定,並使您不必定義複雜的配置。
您將學到什麼
- 使用 Spring Boot 的 CLI 工具構建快速的基於 Groovy 的應用程式,甚至不需要接觸構建工具
- 使用 ActiveMQ 創建一個 Spring JMS 應用程式
- 在開發和生產中使用 Spring Data JPA 和 Spring Data MongoDB 處理多個資料庫配置
- 確切了解 Spring Boot 為您創建了哪些 beans,以及為什麼會這樣做
- 在 URL 和方法層級上保護您的應用程式
- 使用 Spring Data REST 將您的 Spring Data 存儲庫導出以支持獨立客戶端
- 配置嵌入式 Tomcat servlet 引擎以使用 SSL,並查看它如何自動使用 HSTS
詳細內容
這本實用且易於理解的指南幫助您快速上手 Spring Boot。本書首先使用 Apache Tomcat 上的 Spring 堆疊構建一個 Spring MVC 應用程式,幾乎不需要您進行配置。您還將學習如何編寫 JUnit 和 Spock 測試案例。然後,您將揭開面紗,了解 Spring Boot 的運作方式,使用 Spring Messaging(JMS 和 AMQP),以及創建針對生產環境的自定義指標、自定義信息和自定義 CLI 命令。在最後兩章中,您將看到 Spring Boot 如何支持我們日常面對的情況。您將學習如何在應用程式內創建多個配置,以便與不同的數據存儲互動。
到本書結束時,您將對 Spring Boot 的運作方式、如何管理低層基礎設施以及如何啟動具有內建支持工具和自定義工具的生產級應用程式有良好的理解。