1、 毕业设计毕业设计(论文论文) 题题 目:目: 基于基于 Struts + Spring + Hibernate 的的购物网站设计与实现购物网站设计与实现 学生姓名学生姓名 学学 号号 分分 院院 信息工程分院信息工程分院 专业班级专业班级 指导教师指导教师 中文摘要 摘 要 本设计运用当前主流的 Java 技术,采用 MVC 开发模型,以 Struts、Spring 和 Hibernate 框架为基础开发了一个轻量级的网上购物系统。Struts 用作控制器,Spring 作为业务层,Hibernate 作为数据持久层,开发中同时使用 JSTL 标签库。这些技术的 整合,使得系统在各方面都能达
2、到要求,并有利于系统的维护和升级。 系统分为前台部分和后台部分, 前台部分主要实现的功能有顾客的注册和登录功 能、查看商品信息功能、搜索商品的功能、购物车、收藏夹功能、个人信息维护管理 功能;后台部分主要实现管理员管理商品信息、订单信息、目录信息和用户信息。其 中购物车可以在用户未登录的情况下操作, 并且原有的商品与现有的商品可以相互叠 加。 关键词:网上购物系统;Struts;Spring;Hibernate;JSTL;MVC 模式 英文摘要 ABSTRACT This design uses the mainstream Java technology to develop a light
3、weight online shopping application. MVC software developing model is adopted, based on the popular framework consisting of Struts, Spring and Hibernate, where Struts behaves as the controller layer, Spring as the service layer, and Hibernate as the data persistence layer. JSTL library is also used.
4、With all these technologies together, the application achieves all the design purposes, and is flexible for update and maintenance. The application consists of two main subsystems, the front end subsystem and the central management subsystem. For the front end subsystem, the features involve custome
5、r registration, login, information retrieval on merchandises, product search, shopping cart, preference folder, customer profile update. Product information update, orders process, category and user information management are the functions of the central management subsystem. In the mean time, the s
6、hopping cart can be used without login, the selected item can be added automatically. Key Words:Online shopping system;Struts; Hibernate;JSTL;The Model of MVC 目录 III 目 录 1 引 言 1 2 相关知识和技术背景 2 2.1 J2EE 概述 2 2.2 MVC 设计模式 2 2.3 Struts MVC 设计模式 . 3 2.4 Spring框架 3 2.5 Hibernate 框架 . 4 2.6 Struts、Spring、Hibernate 的整合 . 5 2.7 JSTL 标签库 6 3 系统需求分析 . 7 3.1 B2C 系统模块介绍 7 3.2 确定用户需求 8 3.3 需求规定 9 3.3.1 对性能的规定 9 3.3.2 输入输出要求 9 3.3.3 数据管理能力要求 . 9 3.3.4 故障处理要求 9 3.3.5 运行环境需求 9 4 系统概要设计 10 4.1 总体设计 1