Beginning Spring Framework 2:Beginning Spring Framework 2
分類: 图书,进口原版书,计算机 Computers & Internet ,
作者: Thomas Van de Velde等著
出 版 社:
出版时间: 2007-10-1字数:版次: 1页数: 472印刷时间: 2007/10/01开本: 16开印次: 1纸张: 胶版纸I S B N : 9780470101612包装: 平装内容简介
Beginning Spring Framework 2 shows beginning Java developers how to build serverside Java applications using the latest 2.0 release of the Spring Framework. The book does not assume any previous knowledge of J2EE--in fact, the authors argue that beginners learn more quickly by starting directly with Spring.
The authors show readers how to build a working web application using Spring with other open source tools and technologies, all of which can be freely downloaded and installed via the Internet. Each chapter builds a portion of the application. All the Spring concepts and construction techniques are introduced during the design and coding of this application. (With minor adaptation, the resulting code can be re-used by readers in their own working applications.)
作者简介
Thomas Van de Velde has extensive experience developing high-traffic public-facing web sites across a wide range of industries. As a consultant and project manager for one of the leading global technology consulting firms, he has worked on delivering the French online tax declaration and one of the United States’ largest sports sites. Thomas is passionate about finding ways to leverage open source in the enterprise, and in his free time tries to catch a wave in southern California where he lives with his wife and daughter.
目录
Acknowledgments
Introduction
Chapter 1: Jump Start Spring 2
All About Spring
Focus on Simplicity
Applying Spring
Creating a Modularized Application
Using Spring to Configure a Modularized Application
Wiring Beans Automatically by Type
Understanding Spring's Inversion of Control (IoC) Container
Adding Aspect-Oriented Programming to the Mix
Adding a Logging Aspect
Beyond Plumbing -- Spring API Libraries
Using Spring APIs To Facilitate Application Creation
Summary
Chapter 2: Designing Spring Applications
Overview of the PIX Album-Management System
The PIX System Requirements
Discovering the Domain Model
The PixUser POJO
The Affiliate POJO
The Picture Object
The Album POJO
The Comment POJO
The POJO Relationships
The Importance of Unit Testing
POJO-Based Design and Containerless Unit Testing
Regression Testing
Working with a Unit-Testing Framework
Summary
Chapter 3: Spring Persistence Using JPA
Java Persistence
JDBC Architecture
Traditional JDBC Approach
DAO - Unifying Data Access
Spring DAO Support
Spring Exception Translation
Spring and JPA
Entities
Spring as a JPA Container
About JPA APIs
JPA the Easy Way - Using Annotations
SPRING JPA Exception Translation
SPRING JPA DAOs
Spring JPA Configuration
Persistence and the PIX Domain Model
Persisting The PixUser POJO
Implementing PixUser Repository DAO
Implementing the Album Repository DAO
Testing the Persistence Layer
Spring Test Support
Executing the Persistence Test Suite
Testing the PIX Repositories
Summary
Chapter 4: Using Spring MVC to Build Web Pages
The MVC Architectural Pattern
The Sample Application's Architecture
Spring MVC Development
Processing Web Requests with Controllers
Presenting the Model with a View
Getting Data from the User with Forms
A Basic Form-Submission Workflow
Using the Form View
When Things Go Wrong
Summary
Chapter 5: Advanced Spring MVC
Submitting a Form Across Multiple Pages
Adding Pictures to an Album
Developing Wizard Form Pages
……
Chapter 6: Spring Web Flow
Chapter 7: Ajax and Spring: Direct Web Remoting Integration
Chapter 8: Spring and JMS — Message-Driven POJOs
Chapter 9: Spring Web Services and Remoting
Chapter 10: Web Service Consumer and Interoperation with NET
Chapter 11: Rapid Spring Development with Spring IDE
Chapter 12: Spring AOP and AspectJ
Chapter 13: More AOP: Transactions
Appendix A: Maven 2 Basics
Appendix B: Spring and Java EE
Appendix C: Getting Ready for the Code Examples
Index