Pro Spring MVC with Web Flow.pdf
(
15331 KB
)
Pobierz
THE EXPERT’S VOICE
®
IN SPING
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
Contents at a Glance
Foreword..............................................................................................................
xvi
About the Authors..............................................................................................
xviii
About the Technical Reviewer..............................................................................
xx
Acknowledgments...............................................................................................
xxi
Introduction.......................................................................................................
xxiii
Chapter 1: Configuring a Spring Development Environment.................................
1
Chapter 2: Spring Framework Fundamentals.......................................................
25
Chapter 3: Web Application Architecture..............................................................
51
Chapter 4: Spring MVC Architecture.....................................................................
65
Chapter 5: Implementing Controllers..................................................................
107
Chapter 6: Implementing Controllers — Advanced............................................
177
Chapter 7: REST and AJAX..................................................................................
215
Chapter 8: Resolving and Implementing Views..................................................
237
Chapter 9: Testing Spring MVC Applications......................................................
273
Chapter 10: Spring Web Flow.............................................................................
321
Chapter 11: Building Applications with Spring Web Flow.................................
373
Chapter 12: Advanced Spring Web Flow.............................................................
429
Chapter 13: Spring Security................................................................................
477
Appendix: Cloud Foundry: Deploying to the Cloud.............................................
535
Index...................................................................................................................
555
iv
Contents
Foreword..............................................................................................................
xvi
About the Authors..............................................................................................
xviii
About the Technical Reviewer..............................................................................
xx
Acknowledgments...............................................................................................
xxi
Introduction.......................................................................................................
xxiii
Chapter 1: Configuring a Spring Development Environment.................................
1
Prerequisites......................................................................................................................
1
Java Development Kit...............................................................................................................................
2
Servlet Container......................................................................................................................................
2
Integrated Development Environment......................................................................................................
2
The Sample Application.....................................................................................................
2
A Bookstore Sample Application..............................................................................................................
3
The Build System......................................................................................................................................
4
Building the Sample Application...............................................................................................................
6
Deploying the Sample Application............................................................................................................
8
SpringSource Tool Suite (STS).........................................................................................
10
Configuring STS for Gradle projects.......................................................................................................
10
Importing the Sample into STS...............................................................................................................
12
Running the Application on the SpringSource vFabric tc Server............................................................
17
Editing the Application............................................................................................................................
19
Summary.........................................................................................................................
22
v
C H A P T E R 1
Configuring a Spring
Development Environment
Before you can really start your journey into Spring MVC, you need to make sure you have your
development environment set up right. This chapter will begin by walking you through that process.
Next, it will provide some details about the sample bookstore application that ships with this book. But
before going into either the details of the development environment or the sample application, this
chapter will provide an overview of the prerequisites for your environment in general.
The sample application that ships with the book is used to explain the concepts of Spring MVC and
MVC in general. It is not intended to be a full-blown, ready-to-use production application; nor is it to be
used as a Java or full Spring Framework application. The main intent of the app is to help explain and
express the Spring MVC concepts used throughout the book.
Prerequisites
To build the sample application, you need to have a Java Development Kit (JDK) installed; and for
(standalone) deployment, you need a servlet container that supports version 3.0 of the Servlet
Specification (we chose to use Tomcat 7). To make development easier, you will need to use an
integrated development environment (IDE); for this book, we, the authors, chose to use the
SpringSource Tool Suite (STS). Table 1-1 lists the products and versions used while writing this book.
Development on the selected products still continues, so it might be that there is a newer version
available at the time you read this. However, there is nothing in the code that shouldn’t work on or with
newer versions of the software.
Table 1-1.
Software Versions and Download Sites
Product
Version
Download
1.6.0 Update 31
www.oracle.com/technetwork/java/javase/downloads/index.html
JDK
http://tomcat.apache.org/download-70.cgi
Tomcat
7.0.26
www.springsource.com/developer/sts
SpringSource Tool
Suite
2.9.0
1
Plik z chomika:
Azunai
Inne pliki z tego folderu:
Learning Spring 5.0 - P.M. Jog.pdf
(4713 KB)
Learning Spring 5.0 - P.M. Jog.mobi
(320 KB)
Learning Spring 5.0 - P.M. Jog.epub
(331 KB)
Building a RESTful Web Service - Ludovic Dewailly.pdf
(1361 KB)
Mastering Spring Application Development - A. Mankale.mobi
(4297 KB)
Inne foldery tego chomika:
2dartist
3D Artist
3D World
3dcreative
3ds Max
Zgłoś jeśli
naruszono regulamin