【正文】
I 本 科 畢 業(yè) 論 文(設計) 院 系 軟件學院 題 目 基于 SSH框架的 BBS 系統(tǒng)的帖子模塊 的 設計與實現(xiàn) 學生姓名 劉東華 學 號 071251083 年 級 2020 級 專 業(yè) 軟件工程 指導教師 職 稱 論文提交日期 南京大學軟件學院本科畢業(yè)論文 I 摘 要 通過對 BBS 的發(fā)展過程和趨勢以及現(xiàn)階段國內(nèi)外 Web 應用中動態(tài)頁面技術的分析,開發(fā)一個界面簡潔高效、用戶體驗較好和易于擴展的在線論壇系統(tǒng)是十分必要的,因此我們選擇使用 JSP 和 SSH框架來開發(fā)這個 BBS 項目。 基于 SSH框架的 BBS 系統(tǒng) 采用 MVC 設計模式,利用 Struts2 控制業(yè)務邏輯和表現(xiàn)層的交互 ,使用 Spring的 IoC 容器來管理 Bean的依賴注入 ,并且 采用 功能完善的 Hibernate 框架實現(xiàn)對象的持 久化 ,在前臺頁面設計上使用了 Javascript、Div+CSS、 xhEditor 等技術增強用戶體驗。 本項目實現(xiàn)了基本的 BBS 在線論壇系統(tǒng)的常用功能,如瀏覽帖子、 回復帖子、 發(fā)布帖子、對帖子進行管理以及管理員的后臺操作功能。主要分為五個模塊:系統(tǒng)管理模塊、版區(qū)管理模塊、搜索模塊、統(tǒng)計模塊和帖子模塊。 本篇論文介紹的是帖子模塊,主要是實現(xiàn)帖子的業(yè)務邏輯操作及相應的前臺頁面顯示。 關鍵詞 : BBS 項目 , SSH 框架 , J2EE 南京大學軟件學院本科畢業(yè)論文 II Abstract Based on the analysis of the development and the trend of BBS and dynamic pages in Web application around the world, develop a simple, efficient and easy to expand online BBS system is very necessary, So finally we chose to use the JSP technology and SSH framework to develop this BBS project. The BBS system which based on SSH framework take the advantage of the MVC design patterns, using Struts2 to control the interaction between business logic and the presentation layer, using Spring?s IoC container to manage injection of the depended Bean, and using the fully functional Hibernate framework to achieve the persistence of the bean object. Javascript and Div + CSS technology are applied in the design of the front jsp pages and use xhEditor toolkit to enhance the user experience. The project implements the basic features of online bbs system, such as read posts, give a reply to a specific post, publish a new post and manage the post. This project mainly divided into five modules : system management module, section and board management module, search module, statistic module and post module. This paper is to introduce the post module, which achieves the operation of business logic for posts and the display of the corresponding front pages. Keywords: BBS project, SSH framework, J2EE technology 南京大學軟件學院本科畢業(yè)論文 III 目 錄 摘 要 .............................................................................................................................I Abstract ......................................................................................................................... II 目 錄 .......................................................................................................................... III 第一章 概述 /緒論 ........................................................................................................ 1 項目背景 .......................................................................................................... 1 國內(nèi)外 Web 應用技術現(xiàn)狀 ............................................................................ 1 論文主要工作 /組織結(jié)構(gòu) ................................................................................ 2 第二章 技術概述 .......................................................................................................... 3 J2EE技術 ..................................................................................................... 3 JDBC ....................................................................................................... 3 JSP........................................................................................................... 4 SSH 技術 ...................................................................................................... 4 ............................................................................................. 5 ............................................................................................ 6 ....................................................................................... 7 Div+CSS 技術 .............................................................................................. 8 Div...................................................................................................... 8 CSS..................................................................................................... 9 Javascript/Ajax/JQuery技術 ........................................................................ 9 Javascript............................................................................................ 9 Ajax .................................................................................................... 9 JQuery ................................................................................................ 9 xhEditor 技術 ............................................................................................. 10 第三章 基于 SSH框架的 BBS 項目概述 ................................................................. 11 項目總體目標 ......................................................................................... 11 項目需求 ................................................................................................. 11 一般性需求 ...................................................................................... 11 功能性需求 ...................................................................................... 11 具體功能點需求 .............................................................................. 13 項目總體設計 ......................................................................................... 16 后臺邏輯 .......................................................................................... 16 南京大學軟件學院本科畢業(yè)論文 IV 配置文件 .......................................................................................... 17 前臺頁面 .......................................................................................... 19 第四章 基于 SSH框架的 BBS 項目的帖子模塊分析、設計與實現(xiàn) .....