摘 要
本文研究了当今博客系统的市场需求和种种的优势与不足,以及博客在中国发展迅速这一现状,提出了开发一个专业的博客管理系统的思想。本文对博客系统的运行机制、组成、相关可应用技术进行了深入的研究和分析,确定符合现在博客管理的需求,详细阐述了系统的总体设计和详细设计,并在此基础上,应用当前最流行的J2EE三层结构、JSP技术、数据库等与系统开发相关的技术完成系统主要功能的实现。
本博客系统致力为广大用户提供优质的互动交流平台,实现对博客发表文章、评论、图片、好友等数据的管理,同时实现了博客内容及时、快速更新的功能,系统不仅保留了传统博客系统的功能,还加上了一些人性化的界面设计,使用户对博客的操作更为的方便。
为了满足博客信息管理系统的要求,实现系统静态与动态页面的相互分离,本系统采用了SSH构架设计,从职责上分为三层:表示层、业务逻辑层、数据持久层。其中使用Struts2作为系统的整体基础架构,负责MVC的分离,在Struts2框架的模型部分,利用Hibernate框架对持久层提供支持,业务层用Spring支持。具体做法是:用面向对象的分析方法根据需求提出一些模型,将这些模型实现为基本的Java对象,然后编写基本的DAO接口,并给出Hibernate的DAO实现,采用Hibernate架构实现的DAO类来实现Java类与数据库之间的转换和访问,最后由Spring完成业务逻辑。
关键词:表示层;业务逻辑层;数据持久层;Struts;Hibernate;Spring
Abstract
In this paper analyzes the market demand of blogging system and its advantages and inadequate, and the status of that blogs developed rapidly in china. Proposed to design a corporate ssh-based bolg systems thinking. Papers on the Blog System operation mechanism, composition, related techniques can be applied to in-depth research and analysis, detailed design of the system and detailed design, and on this basis, application of the most popular j2ee three-tier structure and jsp technology, databases and the systems development of technology to complete system of the main features.
This blog system is committed to offer high quality interactive exchange platform for customers. Implemente manage the data of publish articles, comments, pictures, companions and so on.
The system uses SSH framework design in order to meet the blog information management system requirements, and implement the static and dynamic pages separate. The system is divided into three layers based on the functions; there are Presentation Layer, Business Logic Layer and Data Persistence Layer. It uses Struts2 as overall infrastructure to separate the MVC. In the model part of the Struts2, it uses Hibernate framework to support persistence layer and uses Spring framework to support business layer. The specific approach is according to the demand to propose some models with the object-oriented analysis method, and realizes these models for basic object of Java, then compiles the basic DAO connection and realizes it in Hibernate. It uses the DAO which made by the Hibernate framework to achieve the conversion and access between Java and database, finally it completes the service logic by Spring framework.
Key words: Presentation Layer; Business Logic Layer; Data persistence layer; Struts; Hibernate; Spring
目 录
绪论
1.1 概述
1.2 研究背景和发展趋势
1.2.1 研究背景
1.2.2 发展趋势
1.3 研究的目的和意义
1.4 本文工作概述
1.5 本文结构
第2章 系统相关技术
2.1 体系结构
2.2 JSP简介
2.3 ECLIPSE简介
2.4 TOMCAT简介
2.5 MYSQL简介
2.6 Struts2简介
2.7 Spring简介
2.8 Hibernate简介
第3章 系统分析
3.1 系统可行性分析:
3.2 系统需求分析:
3.2.1 功能需求分析
3.2.2 系统的业务需求及流程
3.2.3 系统数据分析及数据流图
3.2.4 系统数据字典
第4章 系统数据库设计
4.1 概念设计
4.2 数据表结构
4.3 数据表结构关系
第5章 系统总体设计
5.1 系统的总体设计原则
5.2系统功能设计
5.2.1 总体功能描述
5.2.2 功能模块设计
第6章 系统详细设计与实现
6.1 SSH构架的搭建及配置文件
6.2 系统编码设计
6.2.1 编写持久对象层类
6.2.2 编写数据访问层类
6.2.3 编写业务逻辑层类
6.2.4 编写WEB层类
6.3 系统主要功能模块详述
6.3.1 后台:博客管理模块
6.3.2 前台:用户界面模块
总结与展望
7.1 博客系统的主要特点
7.2 系统的不足之处
7.3 前景展望
致 谢
参考文献