Spring MVC Cookbook (Paperback)

Alex Bretet

  • 出版商: Packt Publishing
  • 出版日期: 2016-02-29
  • 售價: $2,200
  • 貴賓價: 9.5$2,090
  • 語言: 英文
  • 頁數: 466
  • 裝訂: Paperback
  • ISBN: 1784396419
  • ISBN-13: 9781784396411
  • 相關分類: Java 相關技術
  • 相關翻譯: Spring MVC 實戰 (簡中版)
  • 下單後立即進貨 (約3~4週)

商品描述

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結構化項目,創建自我測試的特定領域可部署的Web存檔。
- 使用AngularJS和Bootstrap生成響應式和強大的前端模板。
- 構建高性能的無狀態RESTful和超媒體應用程序,以支持多個客戶體驗。
- 使用基本身份驗證方案和OAuth2在REST上進行身份驗證;處理角色和權限。
- 使用Swagger和Swagger UI文檔和發布REST API。
- 擴展Spring Web應用程序。
- 通過WebSocket和STOMP消息進行通信。
- 通過相關的測試堆為應用程序提供支持並高效地維護其業務功能。

詳細內容

Spring MVC是一個輕量級的應用程序框架,默認情況下具有出色的配置。作為Spring Framework的一部分,它自然地擴展並支持了一套令人驚嘆的可識別注釋。外部庫可以插入和拔出。它還具有請求流程。

完全支持REST Web服務使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。