基于Java的CMS系统
摘 要
CMS系统即Content Management System,意为"内容管理系统",这里指的"内容"可能包括文件、图片、数据库中的数据甚至视频等你想要发布到网站的信息。本文所研究开发的系统是基于Java的CMS系统,其"内容"是针对数据库中的"新闻"信息进行管理。本系统基于B/S模式,包括两大模块:系统前端和系统后台。系统前端实现了用户登录注册、查看新闻、搜索新闻、添加评论和修改个人资料的功能,系统后台实现了对新闻类型、新闻、发布 、评论和用户管理的功能。本系统开发的创新点是利用模板技术,在发布新闻的时候生成静态的HTML页面,前台用户直接访问这个HTML页面而不需要每次都去访问数据库,这样就大大提高了在用户量较大的时候对新闻页面的并发访问效率。
关键词:Java,CMS,新闻
Design and Implementation of Java-based CMS system
Abstract
CMS system that is Content Management System, meaning "content management system" here refers to the "content" may include documents, images, and even video data in the database you want to publish to other web sites. Development of the system studied in this paper is a Java-based CMS systems design and implementation, the "Content" is for the database in the "News" information management. The system is based on B/S model, includes two modules: system front-end and back-end systems. Front of the system to achieve a user login register, view news, search, news, add comments, and modify personal data function, the system background to achieve to manager categories, news, publishing, revert, and user functions. The innovation of this system development is the use of template technology,when publish news generate static HTML pages, front desk users to directly access the HTML pages without the need to access the database every time, thus greatly improving the user a large amount of when the news page of concurrent access efficiency.
Key Words:Java; CMS; News
目 录
摘 要 i
Abstract ii
第一章 引 言 - 1 -
1.1 系统设计背景 - 1 -
1.2 关键技术介绍 - 2 -
1.3 本文主要内容 - 3 -
第二章 总体方案设计 - 4 -
2.1 系统设计的目标 - 4 -
2.2 系统处理流程 - 4 -
2.2.1 系统前台流程图 - 4 -
2.2.2 系统后台流程图 - 5 -
2.3 系统功能模块设计 - 5 -
2.4 系统设计分析 - 6 -
第三章 数据库设计 - 8 -
3.1 系统数据流程图描述 - 8 -
3.2 概念结构设计 - 8 -
3.3 物理结构设计 - 9 -
3.4 出错处理设计 - 11 -
第四章 系统功能模块的具体实现 - 12 -
4.1 数据库与后台连接的实现 - 12 -
4.2 数据库创建表 - 13 -
4.3 系统主页面设计 - 13 -
4.4 包含各种对用户的逻辑方法 - 13 -
4.5 CMS系统的关键实现 - 13 -
第五章 系统运行与测试 - 14 -
5.1 系统运行环境 - 14 -
5.2 系统前端运行 - 14 -
5.2.1 进入首页 - 14 -
5.2.2 查看新闻 - 15 -
5.2.3 搜索新闻 - 16 -
5.2.4 用户登录和注册 - 18 -
5.2.5 修改个人信息 - 19 -
5.2.6 添加评论 - 19 -
5.2.7 注销登录 - 21 -
5.3 系统后台运行 - 21 -
5.3.1 后台首页 - 21 -
5.3.2 查询新闻 - 22 -
5.3.3 添加一条新闻 - 23 -
5.3.4 浏览新闻 - 24 -
5.3.5 发布新闻 - 24 -
5.3.6 删除新闻 - 26 -
5.4 系统的测试 - 27 -
第六章 总结与展望 - 29 -
参考文献 - 30 -
致 谢 - 31 -
附 录 - 32 -
第一章 引 言
1.1 系统设计背景
随着Internet的飞速发展,软件开发模式也由传统的C/S(客户/服务)模式转化为现在的B/S(浏览器/服务器)模式。而作为一种安全性比较高的语言,Java就成为服务器端编程的较好选择,于是在各种Web应用程序中,纷纷采用Java作为首选的编程语言[1