毕 业 论 文(设计)用 纸
佳 木 斯 大 学
毕业论文
论文题目: 叮叮网上书店 -产品管理
学 院: 信息电子学院 专 业: 计算机
学生姓名: 学 号:
指导教师: 职 称:
2008 年 6 月 11 日
佳木斯大学教务处 第 页
毕 业 论 文(设计)用 纸
摘 要
本网上购书系统是基于 B/S 架构的三层 Web 应用,即浏览器与服务器模式,浏览器
可 以 使 用 IE6.0 、 Netscope4.0 、 Firefox Web Browser 等 , 服 务 器 采 用 开 源 的
Tomcat5.0,数据库采用开源的 MySQL5.0。本系统基于 Java 2 Enterprise Edition
(J2EE) 平台,使用 Java、XML、JavaScript 与 JSP 语言,Struts 与 Hibernate 等开源
框架进行开发。
本论文主要进行产品管理模块的产述,可以让用户非常容易在页面上看见数据库中所
存的所有书籍名称,并且能够查看到单本书籍的价格、产品和简单描述,然后用户对自己
喜爱的书籍进行选购,最后添加到用户管理模块的购物车中去。
本文中所做的主要工作如下:介绍了开发工具的使用及相关配置,阐述了整个模块的
结构、数据库的设计及工作原理,建立了产品管理模块并进行了测试。
本论文主要分析了基于 MVC 框架在系统开发中的应用以及网上销售系统的业务逻辑
与具体实现。
关键词:网上购书系统;Hibernate;Java;JSP;XML; Struts;
佳木斯大学教务处 第 页
I
毕 业 论 文(设计)用 纸
Abstract
Web Store System is according to three layer Web of the B/S structure application, namely
the browser and the server mode, the browser can use IE6.0, Netscope4.0, Firefox Web
Browser,the server adoption opens the Tomcat5.0, the database adoption opens the MySQL5.0.
This system according to the Java 2 Enterprise Edition (J2EE) terrace, the usage Java and the JSP
language, the Struts and Hibernate etc. open the source frame to carry on a development.
This paper product management module in the middle, you can allow users to easily on the
page to see the database in the name of all the books and can read books to the single-price,
product and a brief description, and users of their favorite Books to purchase, add it to the final
user management module to the shopping cart.
In this paper, the major work done by the following: the development tools and the use of the
configuration, described the structure of the entire module, database design and working
principle, a product management module and conduct the test.
This thesis mainly analyzed the MVC frame in the system the development of the application
and net up sell the business logic and concrete realization of the system.
Key Words:Purchase books online system; Hibernate;Java;JSP;XML; Struts;
佳木斯大学教务处 第 页
II
毕 业 论 文(设计)用 纸
目录
摘 要..........................................................................................................................................................................I
Abstract....................................................................................................................................................................II
第 1 章 绪论.............................................................................................................................................................1
1.1 课题研究背景....................................................................................................................................................1
1.2 课题研究意义....................................................................................................................................................1
1.3 国内外的发展现状............................................................................................................................................2
1.4 预期实现效果....................................................................................................................................................2
第 2 章 开发工具及运行环境的搭建.....................................................................................................................4
2.1 服务器配置........................................................................................................................................................4
2.2 JDK 的安装与环境变量的配置........................................................................................................................4
2.3 Tomcat 安装与环境变量的配置.......................................................................................................................5
2.4 MyEclipse6.0 安装.............................................................................................................................................5
2.5 MySQL 安装......................................................................................................................................................5
第 3 章 技术简介.....................................................................................................................................................7
3.1 Java 语言............................................................................................................................................................7
3.2 JavaScript 语言...................................................................................................................................................7
3.3 XML 语言...........................................................................................................................................................8
3.4 HQL 语言...........................................................................................................................................................8
3.5 JSP 语言.............................................................................................................................................................9
3.6 Hibernate 技术..................................................................................................................................................10
第 4 章 需求分析....................................................................................................................................................11
4.1 技术可行性分析..............................................................................................................................................12
4.2 操作可行性分析..............................................................................................................................................12
4.3 成本可行性分析..............................................................................................................................................12
第 5 章 总体分析与设计.......................................................................................................................................13
5.1 系统总体结构设计.........................................................................................................................................13
5.2 系统各层的设计实现.................................................................................................14
5.2.1 MVC 模式概述.......................................................................................................14
5.2.1.1 Model 层...............................................................................................................14
5.2.1.2 View 层.................................................................................................................16
5.2.1.3 Controller 层.........................................................................................................17
5.3 数据库的设计..................................................................................................................................................20
5.3.1 系统实体关系图...........................................................................................................................................20
5.3.2 数据库表.......................................................................................................................................................21
5.4 模块的详细设计..............................................................................................................................................24
5.4.1 产品模块的主要功能...................................................................................................................................24
5.4.2 页面的建立...................................................................................................................................................24
佳木斯大学教务处 第 页
毕 业 论 文(设计)用 纸
5.4.3 实体类的建立...............................................................................................................................................24
5.4.4 自定义控制器类 Action...............................................................................................................................25
第 6 章 软件测试...................................................................................................................................................27
6.1 软件测试的目的和方法..................................................................................................................................27
6.2 具体测试..........................................................................................................................................................28
结论........................................................................................................................................................................30
致谢........................................................................................................................................................................31
参考文献................................................................................................................................................................32
附录 1 程序源代码................................................................................................................................................33
附录 2 英文文献及中文翻译................................................................................................................................38
佳木斯大学教务处 第 页
- 1
- 2
- 3
- 4
前往页