Spring Recipes: A Problem-Solution Approach, 2/e (Paperback)
暫譯: Spring 食譜:問題解決方法,第2版 (平裝)

Gary Mak, Daniel Rubio, Josh Long

  • 出版商: Apress
  • 出版日期: 2010-09-01
  • 售價: $2,150
  • 貴賓價: 9.5$2,043
  • 語言: 英文
  • 頁數: 1104
  • 裝訂: Paperback
  • ISBN: 1430224991
  • ISBN-13: 9781430224990
  • 相關分類: Java 相關技術
  • 已過版

買這商品的人也買了...

商品描述

With over 3 Million users/developers, Spring Framework is the leading “out of the box” Java framework. Spring addresses and offers simple solutions for most aspects of your Java/Java EE application development, and guides you to use industry best practices to design and implement your applications.

The release of Spring Framework 3 has ushered in many improvements and new features. Spring Recipes: A Problem-Solution Approach, Second Edition continues upon the bestselling success of the previous edition but focuses on the latest Spring 3 features for building enterprise Java applications. This book provides elementary to advanced code recipes to account for the following, found in the new Spring 3:

  • Spring fundamentals: Spring IoC container, Spring AOP/ AspectJ, and more
  • Spring enterprise: Spring Java EE integration, Spring Integration, Spring Batch, jBPM with Spring, Spring Remoting, messaging, transactions, scaling using Terracotta and GridGrain, and more.
  • Spring web: Spring MVC, Spring Web Flow 2, Spring Roo, other dynamic scripting, integration with popular Grails Framework (and Groovy), REST/web services, and more.

This book guides you step by step through topics using complete and real-world code examples. Instead of abstract descriptions on complex concepts, you will find live examples in this book. When you start a new project, you can consider copying the code and configuration files from this book, and then modifying them for your needs. This can save you a great deal of work over creating a project from scratch!

What you’ll learn

  • How to use the IoC container and the Spring application context to best effect.
  • Spring’s AOP support, both classic and new Spring AOP, integrating Spring with AspectJ, and load-time weaving.
  • Simplifying data access with Spring (JDBC, Hibernate, and JPA) and managing transactions both programmatically and declaratively.
  • Spring’s support for remoting technologies (RMI, Hessian, Burlap, and HTTP Invoker), EJB, JMS, JMX, email, batch, scheduling, and scripting languages.
  • Integrating legacy systems with Spring, building highly concurrent, grid-ready applications using Gridgain and Terracotta Web Apps, and even creating cloud systems.
  • Building modular services using OSGi with Spring DM and Spring Dynamic Modules and SpringSource dm Server.
  • Delivering web applications with Spring Web Flow, Spring MVC, Spring Portals, Struts, JSF, DWR, the Grails framework, and more.
  • Developing web services using Spring WS and REST; contract-last with XFire, and contract–first through Spring Web Services.
  • Spring’s unit and integration testing support (on JUnit 3.8, JUnit 4, and TestNG).
  • How to secure applications using Spring Security.

Who this book is for

This book is for Java developers who would like to rapidly gain hands-on experience with Java/Java EE development using the Spring framework. If you are already a developer using Spring in your projects, you can also use this book as a reference—you’ll find the code examples very useful.

Table of Contents

  1. Introduction to Spring
  2. Advanced Spring IoC Container
  3. Spring AOP and AspectJ Support
  4. Scripting in Spring
  5. Spring Security
  6. Integrating Spring with Other Web Frameworks
  7. Spring Web Flow
  8. Spring @MVC
  9. Spring RESTSpring and Flex
  10. Grails
  11. Spring Roo
  12. Spring Testing
  13. Spring Portlet MVC Framework
  14. Data Access
  15. Transaction Management in Spring
  16. EJB, Spring Remoting, and Web Services
  17. Spring in the Enterprise
  18. Messaging
  19. Spring Integration
  20. Spring Batch
  21. Spring on the Grid
  22. jBPM and Spring
  23. OSGi and Spring

商品描述(中文翻譯)

擁有超過 300 萬用戶/開發者的 Spring Framework 是領先的「即用型」Java 框架。Spring 解決了大多數 Java/Java EE 應用程式開發的各個方面,並提供簡單的解決方案,指導您使用業界最佳實踐來設計和實現您的應用程式。

Spring Framework 3 的發布帶來了許多改進和新功能。Spring Recipes: A Problem-Solution Approach, Second Edition 繼續延續前一版的暢銷成功,但專注於最新的 Spring 3 功能,以構建企業級 Java 應用程式。本書提供從初級到高級的程式碼範例,以涵蓋以下在新 Spring 3 中的內容:

  • Spring 基礎:Spring IoC 容器、Spring AOP/AspectJ 等
  • Spring 企業:Spring Java EE 整合、Spring Integration、Spring Batch、與 Spring 的 jBPM、Spring Remoting、消息傳遞、事務、使用 Terracotta 和 GridGrain 的擴展等。
  • Spring 網頁:Spring MVC、Spring Web Flow 2、Spring Roo、其他動態腳本、與流行的 Grails 框架(及 Groovy)的整合、REST/網路服務等。

本書逐步引導您通過主題,使用完整且真實的程式碼範例。與其對複雜概念進行抽象描述,您會在本書中找到實際範例。當您開始一個新專案時,可以考慮從本書中複製程式碼和配置檔案,然後根據您的需求進行修改。這樣可以節省您從頭開始創建專案的許多工作!

您將學到什麼

  • 如何最佳利用 IoC 容器和 Spring 應用程式上下文。
  • Spring 的 AOP 支援,包括經典和新的 Spring AOP,將 Spring 與 AspectJ 整合,以及載入時編織。
  • 使用 Spring 簡化數據存取(JDBC、Hibernate 和 JPA),並以程式化和聲明式管理事務。
  • Spring 對遠端技術的支援(RMI、Hessian、Burlap 和 HTTP Invoker)、EJB、JMS、JMX、電子郵件、批次、排程和腳本語言。
  • 將遺留系統與 Spring 整合,使用 Gridgain 和 Terracotta Web Apps 構建高度併發的、適合網格的應用程式,甚至創建雲系統。
  • 使用 OSGi 與 Spring DM 和 Spring Dynamic Modules 以及 SpringSource dm Server 構建模組化服務。
  • 使用 Spring Web Flow、Spring MVC、Spring Portals、Struts、JSF、DWR、Grails 框架等交付網頁應用程式。
  • 使用 Spring WS 和 REST 開發網路服務;使用 XFire 進行合約後置,通過 Spring Web Services 進行合約前置。
  • Spring 的單元和整合測試支援(在 JUnit 3.8、JUnit 4 和 TestNG 上)。
  • 如何使用 Spring Security 來保護應用程式。

本書適合誰

本書適合希望快速獲得使用 Spring 框架進行 Java/Java EE 開發的實作經驗的 Java 開發者。如果您已經是使用 Spring 的開發者,您也可以將本書作為參考,您會發現程式碼範例非常有用。

目錄

  1. Spring 簡介
  2. 進階 Spring IoC 容器
  3. Spring AOP 和 AspectJ 支援
  4. Spring 中的腳本
  5. Spring Security
  6. 將 Spring 與其他網頁框架整合
  7. Spring Web Flow
  8. Spring @MVC
  9. Spring REST 和 Flex
  10. Grails
  11. Spring Roo
  12. Spring 測試
  13. Spring Portlet MVC 框架
  14. 數據存取
  15. Spring 中的事務管理
  16. EJB、Spring 遠端和網路服務
  17. Spring 在企業中的應用
  18. 消息傳遞
  19. Spring 整合
  20. Spring Batch
  21. Spring 在網格上
  22. jBPM 和 Spring
  23. OSGi 和 Spring