1、 i 基于 Java 的 CMS 系统的设计与实现 摘 要 CMS 系统即 Content Management System,意为“内容管理系统” ,这里指的“内容”可 能包括文件、图片、数据库中的数据甚至视频等你想要发布到网站的信息。本文所研究开发 的系统是基于 Java 的 CMS 系统的设计与实现,其“内容”是针对数据库中的“新闻”信息 进行管理。本系统基于 B/S 模式,包括两大模块:系统前端和系统后台。系统前端实现了用 户登录注册、查看新闻、搜索新闻、添加评论和修改个人资料的功能,系统后台实现了对新 闻类型、新闻、发布 、评论和用户管理的功能。本系统开发的创新点是利用模板技术,在发
2、 布新闻的时候生成静态的 HTML 页面,前台用户直接访问这个 HTML 页面而不需要每次都 去访问数据库,这样就大大提高了在用户量较大的时候对新闻页面的并发访问效率。 关键词:Java,CMS,新闻 ii 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, im
3、ages, 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
4、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
5、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 eff
6、iciency. Key Words:Java; CMS; News iii 目 录 摘 要. 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 - 第五章 系统运行与测试. - 1