博客信息管理系统的设计与实现
I
摘 要
博客信息管理系统致力于为广大用户提供优质的互动交流平台,提高网站的知名
度和访问量,从而获得为企业提供更多产品介绍及展示的机会,提升自己网站的价值。
为了满足博客信息管理系统的要求,实现系统静态与动态页面的相互分离,系统采用
JSP+JavaBean+Servlet 和 SQL Server2000 数据库相结合的开发模式。
论文首先论述了系统的开发背景和设计目标,并对系统开发所采用的技术进行相
应的简单介绍。在系统分析中,对系统的模型进行简单分析,明确系统的操作流程,
并对系统进行可行性分析,确定在目前的条件下,开发博客信息管理系统是可行的。
在需求分析结果的基础上,对系统的功能模块进行划分。接着对系统中的数据库进行
模型设计,包括数据流图、实体联系图及数据表结构。在系统的设计与实现中,确定
系统的开发思想以及开发环境,并对系统中的 JavaBean 和 Servlet 代码进行设计。最
后给出了系统中模块的详细设计与实现,并对系统模块涉及到的关键源代码进行了详
细的分析。
经过调试运行后表明,系统可以满足用户创建个人博客的各项要求。
关键词:MVC,设计模式,知识共享,博客信息管理系统
II
ABSTRACT
The blog information management system is concentrates on high-quality interactive
exchanges platform for a large number of users, increasing the visits and making the website
more and more famous, thereby can acquiring for the opportunity that business enterprise
providing more introductions and shows of products, promoting the value of the
website.Satisfy for the functions of blog information management system, achieving the
system's static page separate with dynamic page mutually, using JSP+ JavaBean+ Servlet
with the mode of development that the database of SQL Server2000 combine together.
The paper discusses the background of development of the system and the design of
the target first, and introduces the tecknique which used to develop simply.In the analyse of
system, proceeded the simple analysis to the model of the system, made sure the operation
process of the system, proceed the analyse to the system, ensure that under the current term,
developing blog information management system is feasible. At the foundation of
requirement with the analyse result, proceeding the providing of the function module of the
system. Follow, designing the database model, including the data flow diagram, entity
relation diagram and data tables. during the design and realization of the system, making
sure the development thought of the system and install the environment of development,at
last show the design details with realize finally an a key for of detailed design with
realization, and analyzed the program which relate to the system module.
After debugging and running ,it shows that the system can satisfy with users to create
personal blog.
Keywords: MVC,Design Patterns,Knowledge sharing,The Blog Information
Management System
III
目 录
第 1 章 绪论.....................................................................................................1
1.1 博客信息系统概述 ....................................................................................................1
1.2 博客发展趋势 ............................................................................................................2
1.3 系统开发的背景 ........................................................................................................2
1.4 技术路线 ....................................................................................................................3
1.5 系统设计目标分析 ....................................................................................................3
第 2 章 基本技术方案.....................................................................................4
2.1 JSP 中的各种技术 .....................................................................................................4
2.1.1 JSP 概述 .............................................................................................................4
2.1.2 SERVLET 概述........................................................................................................4
2.1.3 JAVABEAN 概述......................................................................................................5
2.2 基于 B/S 的 WEB 应用体系结构 ................................................................................5
2.2.1 传统的两层体系结构 ........................................................................................5
2.2.2 三层体系结构 ....................................................................................................6
2.2.3 JSP 网站开发模式 .............................................................................................6
2.3 ECLIPSE 简介................................................................................................................7
2.4 TOMCAT 简介 .................................................................................................................7
2.5 SQL SERVER 简介..........................................................................................................8
2.6 MVC 设计模式 .............................................................................................................8
第 3 章 系统分析与总体设计 .......................................................................10
3.1 系统需求分析 ..........................................................................................................10
3.1.1 用户需求分析 ..................................................................................................10
3.2 数据分析 ..................................................................................................................11
3.3 系统流程 ..................................................................................................................11
3.4 功能模块划分 ..........................................................................................................14
3.5 功能模块介绍 ..........................................................................................................15
3.5.1 博客注册登录管理模块 ..................................................................................15
IV
3.5.2 博客及文章检索查询模块 ..............................................................................15
3.5.3 博客页面显示模块 ..........................................................................................16
3.5.4 博客个人维护管理模块 ..................................................................................16
第 4 章 系统详细设计 ...................................................................................17
4.1 数据库分析 ..............................................................................................................17
4.1.1 数据库设计 E-R 图 ..........................................................................................17
4.2 系统数据表设计 ......................................................................................................20
4.3 数据连接 ..................................................................................................................23
第 5 章 系统功能的具体实现 .......................................................................24
5.1 系统的主窗口 ..........................................................................................................24
5.2 公共核心类的设计 ..................................................................................................26
5.2.1 数据库相关 ......................................................................................................26
5.2.2 编写 JAVABEAN 类...............................................................................................28
5.2.3 管理类设计 ......................................................................................................29
5.3 系统主要功能模块详述 ..........................................................................................31
5.3.1 博客管理员登陆模块 ......................................................................................31
5.3.2 日志管理显示模块 ..........................................................................................32
5.3.3 撰写日志模块 ..................................................................................................35
5.3.4 删除日志模块 ..................................................................................................36
5.3.5 修改日志模块 ..................................................................................................38
5.3.6 日志搜索模块 ..................................................................................................39
结 论 ...............................................................................................................40
参考文献 ...........................................................................................................41
致 谢 ...............................................................................................................42