Spring Recipes: A Problem-Solution Approach
暫譯: Spring 食譜:問題解決方法

Gary Mak

  • 出版商: Apress
  • 出版日期: 2009-02-18
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 700
  • 裝訂: Paperback
  • ISBN: 1590599799
  • ISBN-13: 9781590599792
  • 相關分類: Java 相關技術
  • 已過版

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

商品描述

Spring addresses most aspects of Java/Java EE application development and offers simple solutions to them. By using Spring, you will be lead to use industry best practices to design and implement your applications. The releases of Spring 2.x have added many improvements and new features to the 1.x versions. Spring Recipes: A Problem–Solution Approach focuses on the latest Spring 2.5 features for building enterprise Java applications.

Spring Recipes covers Spring 2.5 from basic to advanced, including Spring IoC container, Spring AOP and AspectJ, Spring data access support, Spring transaction management, Spring Web and Portlet MVC, Spring testing support, Spring support for remoting, EJB, JMS, JMX, E–mail, scheduling, and scripting languages. This book also introduces several common Spring Portfolio projects that will bring significant value to your application development, including Spring Security, Spring Web Flow, and Spring Web Services.

The topics in this book are introduced by complete and real–world code examples that you can follow step by step. 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

  • Installing the Spring framework and Spring IDE, using the Spring IoC container and the Spring application context.

  • Understanding AOP concepts, using classic and new Spring AOP, integrating Spring with AspectJ, and load–time weaving aspects.
  • Using Spring to simplify data access (with JDBC, Hibernate, and JPA) and manage transactions programmatically and declaratively.
  • Building web applications and portlets with Spring Web MVC and Portlet MVC, and integrating Spring with Struts, JSF, and DWR.
  • Understanding the unit testing and integration testing concepts, and Spring’s unit and integration testing support (on JUnit 3.8, JUnit 4, and TestNG).
  • Using Spring’s support for remoting technologies (RMI, Hessian, Burlap, and HTTP Invoker), EJB, JMS, JMX, E-mail, scheduling, and scripting languages.
  • Understanding security concepts (authentication, authorization, and access control), and securing web applications using Spring Security.
  • Managing complex web application page flows using Spring Web Flow, and integrating Spring Web Flow with JSF.
  • Exposing contract–last web services using XFire, and developing contract–first web services using Spring Web Services.

  • Who is this book for?

    This book is for Java developers who would like to gain hands–on experience rapidly on 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, and you’ll find the code examples very useful.

    You don’t need much Java EE experience to read this book. However, it assumes that you know the basics of object–oriented programming with Java (e.g., creating a class/interface, implementing an interface, extending a base class, running a main class, setting up your classpath, and so on). It also assumes you have basic knowledge on web and database concepts and know how to create dynamic web pages and query databases with SQL statements.

商品描述(中文翻譯)

Spring 涉及 Java/Java EE 應用程式開發的大多數方面,並提供簡單的解決方案。透過使用 Spring,您將能夠遵循業界最佳實踐來設計和實現您的應用程式。Spring 2.x 的版本為 1.x 版本增添了許多改進和新功能。Spring Recipes: A Problem–Solution Approach 專注於最新的 Spring 2.5 特性,以構建企業級 Java 應用程式。


Spring Recipes 涵蓋了從基礎到進階的 Spring 2.5,包括 Spring IoC 容器、Spring AOP 和 AspectJ、Spring 數據存取支援、Spring 交易管理、Spring Web 和 Portlet MVC、Spring 測試支援、Spring 對遠端技術的支援、EJB、JMS、JMX、電子郵件、排程和腳本語言。本書還介紹了幾個常見的 Spring Portfolio 專案,這些專案將為您的應用程式開發帶來顯著的價值,包括 Spring Security、Spring Web Flow 和 Spring Web Services。


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


您將學到什麼



  • 安裝 Spring 框架和 Spring IDE,使用 Spring IoC 容器和 Spring 應用程式上下文。

  • 理解 AOP 概念,使用經典和新版本的 Spring AOP,將 Spring 與 AspectJ 整合,以及進行載入時編織方面。

  • 使用 Spring 簡化數據存取(使用 JDBC、Hibernate 和 JPA)並以程式化和聲明式管理交易。

  • 使用 Spring Web MVC 和 Portlet MVC 構建網頁應用程式和 portlet,並將 Spring 與 Struts、JSF 和 DWR 整合。

  • 理解單元測試和整合測試的概念,以及 Spring 的單元和整合測試支援(基於 JUnit 3.8、JUnit 4 和 TestNG)。

  • 使用 Spring 對遠端技術的支援(RMI、Hessian、Burlap 和 HTTP Invoker)、EJB、JMS、JMX、電子郵件、排程和腳本語言。

  • 理解安全性概念(身份驗證、授權和存取控制),並使用 Spring Security 保護網頁應用程式。

  • 使用 Spring Web Flow 管理複雜的網頁應用程式頁面流程,並將 Spring Web Flow 與 JSF 整合。

  • 使用 XFire 暴露契約最後的網路服務,並使用 Spring Web Services 開發契約第一的網路服務。


這本書適合誰?


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


閱讀本書不需要太多 Java EE 經驗。然而,它假設您了解 Java 的物件導向程式設計基礎(例如,創建類別/介面、實作介面、擴展基類、運行主類、設置類路徑等)。它還假設您對網頁和資料庫概念有基本了解,並知道如何使用 SQL 語句創建動態網頁和查詢資料庫。