您的位置:首页 > 移动开发

Developing a Spring Framework MVC application step-by-step

2011-11-24 09:06 399 查看






Developing a Spring Framework MVC application step-by-step

Authors

Thomas
Risberg, Rick
Evans, Portia
Tung

2.5

Copies of this document may be made for your own use and fordistribution to others, provided that you do not charge anyfee for such copies and further provided that each copycontains this Copyright Notice, whether distributed in printor
electronically.

Table of Contents

Overview
1.
What's covered2.
Prerequisite software3.
The application we are building
1.
Basic Application and Environment Setup
1.1.
Create the project directory structure1.2.
Create 'index.jsp'1.3.
Deploy the application to Tomcat1.4.
Check the application works1.5.
Download the Spring Framework1.6.
Modify 'web.xml' in the 'WEB-INF' directory1.7.
Copy libraries to 'WEB-INF/lib'1.8.
Create the Controller1.9.
Write a test for the Controller1.10.
Create the View1.11.
Compile and deploy the application1.12.
Try out the application1.13.
Summary
2.
Developing and Configuring the Views and the Controller
2.1.
Configure JSTL and add JSP header file2.2.
Improve the controller2.3.
Decouple the view from the controller2.4.
Summary
3.
Developing the Business Logic
3.1.
Review the business case of the Inventory Management System3.2.
Add some classes for business logic3.3.
Summary
4.
Developing the Web Interface
4.1.
Add reference to business logic in the controller4.2.
Modify the view to display business data and add support for message bundle4.3.
Add some test data to automatically populate some business objects4.4.
Add the message bundle and a 'clean' target to 'build.xml'4.5.
Adding a form4.6.
Adding a form controller4.7.
Summary
5.
Implementing Database Persistence
5.1.
Create database startup script5.2.
Create table and test data scripts5.3.
Add Ant tasks to run scripts and load test data5.4.
Create a Data Access Object (DAO) implementation for JDBC5.5.
Implement tests for JDBC DAO implementation5.6.
Summary
6.
Integrating the Web Application with the Persistence Layer
6.1.
Modify service layer6.2.
Fix the failing tests6.3.
Create new application context for service layer configuration6.4.
Add transaction and connection pool configuration to application context6.5.
Final test of the complete application6.6.
Summary
A.
Build Scripts
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐