基于SSH框架的论坛的设计与实现 - 图文 联系客服

发布时间 : 星期三 文章基于SSH框架的论坛的设计与实现 - 图文更新完毕开始阅读87cab9cba5e9856a571260e7

本科毕业设计(论文)

题 目: 基于SSH框架的论坛的设计与实现 学生姓名: 学号: 系(部): 数学与计算机科学系 专业: 计算机科学技术 入学时间: 201 年 9 月 导师姓名: 职称/学位: 导师所在单位:

I

基于SSH框架的论坛的设计与实现

摘 要

为了方便信息的交流,在结合JAVA和S.S.H 技术之下开发了这个快捷、界面友好的交流系统,

实现了一个功能相对齐全的论坛系统,网友可以自由地提出问题以及帮助他人解决问题,或者交流经验。论坛在Struts+Hibernate+Spring扩展Struts框架的基础上,用当今主流的网站开发技术jsp语言进行开发。论坛将采用B/S体系结构,人们通过浏览器就可以访问论坛网站的主页,保证的服务器的安全。数据库采用免费,小巧,易用的mysql数据库。本网站严格按照软件项目开发的流程进行开发,对于网站开发的可行性分析、需求分析、概要设计、详细设计都有详细的论述和实现过程。 Struts框架的引入是为了将系统显示层和业务层进行分离,从而可改变系统页面中穿插功能代码的缺陷性。Spring框架的引入除了可以很好的为中间层服务以外,还能实现与上下层之间的兼容,达到各层相互独立的目的,从而可大大降低各层之间耦合度。Hibernate框架用于完善Spring框架对JDBC的封装。该系统的投入使用,打破了校园门户网站的“平面化”,更富有亲和力和凝聚力,为高校思想政治教育工作者提供了参考,为教师学生间的教学交流开拓了新领域,为学生间互通生活信息提供了平台,为学生获得情感支持和共鸣开辟了人际传播的新领域。

关键词:论坛 ;S.S.H;JAVA;MySQL;JSP

II

Design and Implementation of the Online Forum BBS System

Based on the SSH Framework

Abstract

In order to facilitate the teachers and students information the exchange,in unified JAVA and S.S.H under the server technology has developed this quick truncation, the contact surface friendly teachers and students alternating-current system.realized a function relatively complete forum system, the net friend has been possible freely to propose the question as well as helped other people to solve the problem, or exchange experience.This BBS prepares to expand the Struts frame in Struts + Hibernate + Spring in the foundation, carries on the development with now the mainstream website development technology----JSP language. This website will use the B/S system structure, the people may visit the BBS website through the browser the main page. This make sure that the guarantee server is secure. The database uses free, exquisite, easy-using, MYSQL database . This website strictly carries on the development according to the software project development flow,regarding the website development feasibility analysis, the demand analysis, the outline design, the detailed design as well as all has the detailed elaboration and the realization process to the website.Struts framework is introduced in order to display system and business layers were separated, so as to change the the system pages interspersed function code defects. Spring framework introduction of addition can be a good service for the intermediate layer, but also to achieve and on the compatibility between the underlayer reach the layers independently of each other the purpose, which can greatly reduce the degree of coupling between the layers. The Hibernate framework used to improve the Spring Framework JDBC package.The system is put into use to break the \to provide a reference for the ideological and political education workers, and open up a new field of teaching exchange between teachers and students, for students between interoperability life information to provide a platform for students to get emotional support and resonate to open up new areas of interpersonal communication.

Keywords : bbs ; S.S.H; java ; mysql ; jsp

III

目 录

第 1 章 绪 论 ..................................................................................................................... 1

1.1总体概述 .................................................................................................................. 1 1.2发展与现状 .............................................................................................................. 1 1.3开发目的和意义 ...................................................................................................... 2 第 2 章 系统分析 ............................................................................................................... 3

2.1技术可行性分析 ...................................................................................................... 3

2.1.1 开发语言综述 ............................................................................................... 3 2.1.2 MySQL数据库的选用 ................................................................................. 3 2.1.3 S.S.H框架的优点 ......................................................................................... 4 2.1.4热点技术 ........................................................................................................ 6 2.1.5系统层次设计 ................................................................................................ 6 2.16技术可行性综述 ............................................................................................. 7 2.2 系统需求分析 ......................................................................................................... 7

2.2.1系统需要支持的环境 .................................................................................... 7 2.2.2开发环境 ........................................................................................................ 7

第 3 章系统的功能模块和其流程分析 ............................................................................. 8

3.1 BBS系统的用例描述和功能模块 ......................................................................... 8

3.1.1主要功能的组成 ............................................................................................ 8 3.1.2系统的三大功能模块 .................................................................................... 8 3.2各功能模块的流程 ................................................................................................ 10

3.2.1 BBS系统的用户模块流程 ......................................................................... 10 3.2.2 BBS系统的帖子模块流程 .......................................................................... 11 3.2.3后台管理功能模块流程 .............................................................................. 12

第 4 章BBS系统设计 ..................................................................................................... 13

4.1 BBS数据库设计 ................................................................................................... 13

4.1.1数据库概要设计(E-R图) ...................................................................... 13 4.1.2数据库的详细设计 ...................................................................................... 17 4.2系统功能设计 ........................................................................................................ 20

4.2.1功能模块设计 .............................................................................................. 20 4.2.2系统界面设计 .............................................................................................. 21 4.2.3 BBS组件设计 ............................................................................................. 22

第 5 章系统的实现 ........................................................................................................... 23

5.1类图设计 ................................................................................................................ 23

IV