Spring MVC Cookbook (Paperback)
暫譯: Spring MVC 食譜 (平裝本)

Alex Bretet

  • 出版商: Packt Publishing
  • 出版日期: 2016-02-29
  • 售價: $2,400
  • 貴賓價: 9.5$2,280
  • 語言: 英文
  • 頁數: 466
  • 裝訂: Paperback
  • ISBN: 1784396419
  • ISBN-13: 9781784396411
  • 相關分類: Java 相關技術
  • 相關翻譯: Spring MVC 實戰 (簡中版)
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Over 40 recipes for creating cloud-ready Java web applications with Spring MVC

About This Book

  • Configure Spring MVC to build logic-less controllers that transparently support the most advanced web techniques
  • Build an amazing social and financial application that applies microservices patterns on deployment, self-testability, interoperability, cloud architectures, and scalability
  • Fast-paced, practical guide to learn how to set up Spring MVC to produce REST resources and templates as required by the latest front-end best practices

Who This Book Is For

If you are an experienced Java developer, with prior experience in web technologies, and want to step up in your career and stay up-to-date or learn more about Spring Web scalability, this book is for you.

What You Will Learn

  • Structure your project with Maven and create self-tested, domain-specific deployable web archives
  • Generate templates for a responsive and powerful frontend with AngularJS and Bootstrap
  • Build a high performance stateless RESTful and hypermedia application to support your multiple customer experiences
  • Authenticate over REST with a BASIC authentication scheme and OAuth2; handle roles and permissions
  • Document and publish your REST API using Swagger and Swagger UI
  • Scale your Spring web application
  • Communicate through WebSocket and STOMP messages
  • Provide support to your application and efficiently maintain its business features with a relevant test stack

In Detail

Spring MVC is a lightweight application framework that comes with a great configuration by default. Being part of the Spring Framework, it naturally extended and supported it with an amazing set of recognizable annotations. External libraries can be plugged in and plugged out. It also possesses a request flow.

Complete support of REST web services makes the Spring architecture an extremely consistent choice to support your front-end needs and Internet transformations.

From the design of your Maven modules, you will achieve an Enterprise-standard for a stateless REST application based on Spring and Spring MVC with this book.

This guide is unique in its style as it features a massive overview of practical development techniques brought together from the Spring ecosystem, the new JEE standards, the JavaScript revolution and Internet of Things.

You will begin with the very first steps of Spring MVC's product design. Focused on deployment, viability, and maintainability, you will learn the use of Eclipse, Maven, and Git. You will walk through the separation of concerns driven by the microservices principles. Using Bootstrap and AngularJS, you will develop a responsive front-end, capable of interacting autonomously with a REST API.

Later in the book, you will setup the Java Persistence API (JPA) within Spring; learn how to configure your Entities to reflect your domain needs, and discover Spring Data repositories. You will analyze how Spring MVC responds to complex HTTP requests. You will implement Hypermedia and HATEOAS to guide your customer's stateless conversation with the product and see how a messaging-service based on WebSocket can be configured. Finally you will learn how to set up and organize different levels of automated-tests, including logging and monitoring.

Style and approach

A comprehensive, recipe-based guide to creating stunning Java apps with Spring MVC as a result of learning and implementing pro-level practices, techniques, and solutions.

商品描述(中文翻譯)

**超過 40 個食譜,教你如何使用 Spring MVC 創建雲端就緒的 Java 網頁應用程式**

## 本書介紹

- 配置 Spring MVC 以構建無邏輯的控制器,透明地支持最先進的網頁技術
- 構建一個驚人的社交和金融應用程式,應用微服務模式於部署、自我測試、互操作性、雲架構和可擴展性
- 快速實用的指南,學習如何設置 Spring MVC 以生成 REST 資源和模板,符合最新的前端最佳實踐

## 本書適合誰

如果你是一位有經驗的 Java 開發者,擁有網頁技術的先前經驗,並希望在職業生涯中更進一步,保持最新或學習更多關於 Spring Web 可擴展性的知識,那麼這本書就是為你而寫的。

## 你將學到什麼

- 使用 Maven 結構化你的專案,創建自我測試的領域特定可部署網頁檔案
- 為響應式且強大的前端生成模板,使用 AngularJS 和 Bootstrap
- 構建高效能的無狀態 RESTful 和超媒體應用程式,以支持你的多種客戶體驗
- 通過 BASIC 認證方案和 OAuth2 進行 REST 認證;處理角色和權限
- 使用 Swagger 和 Swagger UI 文件化並發布你的 REST API
- 擴展你的 Spring 網頁應用程式
- 通過 WebSocket 和 STOMP 消息進行通信
- 為你的應用程式提供支持,並有效維護其業務功能,使用相關的測試堆疊

## 詳細內容

Spring MVC 是一個輕量級的應用程式框架,預設提供了出色的配置。作為 Spring Framework 的一部分,它自然地擴展並支持了一組驚人的可識別註解。外部庫可以隨意插入和移除。它還擁有請求流程。

對 REST 網頁服務的完整支持使得 Spring 架構成為支持你的前端需求和網際網路轉型的極具一致性的選擇。

通過設計你的 Maven 模組,你將在這本書中實現基於 Spring 和 Spring MVC 的無狀態 REST 應用程式的企業標準。

這本指南在風格上是獨特的,因為它匯集了來自 Spring 生態系統、新的 JEE 標準、JavaScript 革命和物聯網的實用開發技術的廣泛概述。

你將從 Spring MVC 產品設計的第一步開始。專注於部署、可行性和可維護性,你將學習使用 Eclipse、Maven 和 Git。你將了解微服務原則驅動的關注點分離。使用 Bootstrap 和 AngularJS,你將開發一個響應式前端,能夠自主與 REST API 互動。

在書的後面部分,你將在 Spring 中設置 Java 持久性 API (JPA);學習如何配置你的實體以反映你的領域需求,並發現 Spring Data 存儲庫。你將分析 Spring MVC 如何響應複雜的 HTTP 請求。你將實現超媒體和 HATEOAS,以指導客戶與產品的無狀態對話,並了解如何配置基於 WebSocket 的消息服務。最後,你將學習如何設置和組織不同層級的自動化測試,包括日誌記錄和監控。

## 風格與方法

這是一本全面的、基於食譜的指南,通過學習和實施專業級的實踐、技術和解決方案,創建令人驚豔的 Java 應用程式,使用 Spring MVC。