运行环境: 最好是java jdk 1.8,我在这个平台上运行的。其他版本理论上也可以。
IDE环境: Eclipse,Myeclipse,IDEA或者Spring Tool Suite都可以,如果编译器的版本太低,需要升级下编译器,不要弄太低的版本
tomcat服务器环境: Tomcat 7.x,8.x,9.x版本均可
操作系统环境: Windows XP/7/8/10或者Linux或者MacOS,2G内存以上(推荐4G,4G以上更好)
主要功能说明: 管理员角色包含以下功能:管理员登录,管理员账号管理,注册会员管理,修改密码,旅游景点管理,旅游线路管理,线路订单管理,酒店信息管理,留言管理,友情链接管理等功能。
用户角色包含以下功能:查看首页,查看站内新闻,查看系统简介,查看景点展示,查看线路推荐,查看景点详情,查看推荐酒店,查看路线导航,查看旅游攻略,在线留言,用户注册等功能。
用了技术框架: HTML+CSS+JavaScript+jsp+mysql
——————————————————————————————————————————
我搭建了一个演示站,方便大家看下:
点此进入演示地址
用户账号/密码: user/123456
管理员账号/密码:admin/admin——————————————————————————————————————————
运行的截图如下(点击可以放大):
JSP实现的一个在线旅游旅行综合服务平台-用户角色-查看首页↓↓
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E9%A6%96%E9%A1%B5.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E7%AB%99%E5%86%85%E6%96%B0%E9%97%BB.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E7%B3%BB%E7%BB%9F%E7%AE%80%E4%BB%8B.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E6%99%AF%E7%82%B9%E5%B1%95%E7%A4%BA.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E7%BA%BF%E8%B7%AF%E6%8E%A8%E8%8D%90.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E6%99%AF%E7%82%B9%E8%AF%A6%E6%83%85.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E6%8E%A8%E8%8D%90%E9%85%92%E5%BA%97.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E8%B7%AF%E7%BA%BF%E5%AF%BC%E8%88%AA.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E6%9F%A5%E7%9C%8B%E6%97%85%E6%B8%B8%E6%94%BB%E7%95%A5.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E5%9C%A8%E7%BA%BF%E7%95%99%E8%A8%80.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%94%A8%E6%88%B7%E8%A7%92%E8%89%B2/%E7%94%A8%E6%88%B7%E6%B3%A8%E5%86%8C.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E7%AE%A1%E7%90%86%E5%91%98%E7%99%BB%E5%BD%95.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E7%AE%A1%E7%90%86%E5%91%98%E8%B4%A6%E5%8F%B7%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E6%B3%A8%E5%86%8C%E4%BC%9A%E5%91%98%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E4%BF%AE%E6%94%B9%E5%AF%86%E7%A0%81.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E6%97%85%E6%B8%B8%E6%99%AF%E7%82%B9%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E6%97%85%E6%B8%B8%E7%BA%BF%E8%B7%AF%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E7%BA%BF%E8%B7%AF%E8%AE%A2%E5%8D%95%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E9%85%92%E5%BA%97%E4%BF%A1%E6%81%AF%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E7%95%99%E8%A8%80%E7%AE%A1%E7%90%86.png)
![](https://images.icodedock.com/JAVA/JAVAEE/JSP%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E6%97%85%E6%B8%B8%E6%97%85%E8%A1%8C%E7%BB%BC%E5%90%88%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0/%E7%AE%A1%E7%90%86%E5%91%98%E8%A7%92%E8%89%B2/%E5%8F%8B%E6%83%85%E9%93%BE%E6%8E%A5%E7%AE%A1%E7%90%86.png)
数据库设计文档
数据库名:jsp_zxtravelsite
文档版本:粗写版
文档版本:粗写版
序号 | 表名 | 说明 |
1 | allusers | |
2 | dx | |
3 | jiudianxinxi | |
4 | liuyanban | |
5 | lvyoujingdian | |
6 | lvyouxianlu | |
7 | pinglun | |
8 | shoucangjilu | |
9 | xianludingdan | |
10 | xinwentongzhi | |
11 | yonghuzhuce | |
12 | youqinglianjie |
返回目录
表名:allusers
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | username | varchar | 50 | 0 | Y | N | '' | |
3 | pwd | varchar | 50 | 0 | Y | N | '' | |
4 | cx | varchar | 50 | 0 | Y | N | '普通管理员' | |
5 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:dx
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | leibie | varchar | 50 | 0 | Y | N | '' | |
3 | content | mediumtext | 16777215 | 0 | Y | N | NULL |
返回目录
表名:jiudianxinxi
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | bianhao | varchar | 50 | 0 | Y | N | '' | |
3 | mingcheng | varchar | 50 | 0 | Y | N | '' | |
4 | tupian | varchar | 50 | 0 | Y | N | '' | |
5 | xingji | varchar | 50 | 0 | Y | N | '' | |
6 | chengshi | varchar | 50 | 0 | Y | N | '' | |
7 | junjia | varchar | 50 | 0 | Y | N | '' | |
8 | jianjie | varchar | 500 | 0 | Y | N | '' | |
9 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:liuyanban
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | cheng | varchar | 50 | 0 | Y | N | '' | |
3 | xingbie | varchar | 2 | 0 | Y | N | '' | |
4 | varchar | 50 | 0 | Y | N | '' | ||
5 | youxiang | varchar | 50 | 0 | Y | N | '' | |
6 | dianhua | varchar | 50 | 0 | Y | N | '' | |
7 | neirong | varchar | 500 | 0 | Y | N | '' | |
8 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() | |
9 | huifuneirong | varchar | 500 | 0 | Y | N | '' |
返回目录
表名:lvyoujingdian
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | jingdianbianhao | varchar | 50 | 0 | Y | N | '' | |
3 | jingdianmingcheng | varchar | 50 | 0 | Y | N | '' | |
4 | jingdianzhutu | varchar | 50 | 0 | Y | N | '' | |
5 | suoshudiqu | varchar | 50 | 0 | Y | N | '' | |
6 | jingdianjieshao | mediumtext | 16777215 | 0 | Y | N | NULL | |
7 | menpiaojiage | varchar | 50 | 0 | Y | N | '' | |
8 | kaifangshijian | varchar | 50 | 0 | Y | N | '' | |
9 | issh | varchar | 2 | 0 | Y | N | '否' | |
10 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:lvyouxianlu
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | xianlubianhao | varchar | 50 | 0 | Y | N | '' | |
3 | jingdianmingcheng | varchar | 50 | 0 | Y | N | '' | |
4 | chufashijian | varchar | 50 | 0 | Y | N | '' | |
5 | xianlumingcheng | varchar | 50 | 0 | Y | N | '' | |
6 | chufadi | varchar | 50 | 0 | Y | N | '' | |
7 | xianlujianjie | varchar | 500 | 0 | Y | N | '' | |
8 | faburen | varchar | 50 | 0 | Y | N | '' | |
9 | issh | varchar | 2 | 0 | Y | N | '否' | |
10 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:pinglun
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | xinwenID | varchar | 50 | 0 | Y | N | '' | |
3 | pinglunneirong | varchar | 300 | 0 | Y | N | '' | |
4 | pinglunren | varchar | 50 | 0 | Y | N | '' | |
5 | pingfen | varchar | 50 | 0 | Y | N | '' | |
6 | biao | varchar | 50 | 0 | Y | N | '' | |
7 | jdmc | varchar | 50 | 0 | Y | N | '' | |
8 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:shoucangjilu
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | username | varchar | 50 | 0 | Y | N | '' | |
3 | xwid | varchar | 50 | 0 | Y | N | '' | |
4 | ziduan | varchar | 50 | 0 | Y | N | '' | |
5 | biao | varchar | 50 | 0 | Y | N | '' | |
6 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:xianludingdan
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | xianlubianhao | varchar | 50 | 0 | Y | N | '' | |
3 | xianlumingcheng | varchar | 50 | 0 | Y | N | '' | |
4 | jingdianmingcheng | varchar | 50 | 0 | Y | N | '' | |
5 | chufashijian | varchar | 50 | 0 | Y | N | '' | |
6 | chufadi | varchar | 50 | 0 | Y | N | '' | |
7 | faburen | varchar | 50 | 0 | Y | N | '' | |
8 | xianlubaojia | varchar | 50 | 0 | Y | N | '' | |
9 | fujiashuoming | varchar | 500 | 0 | Y | N | '' | |
10 | iszf | varchar | 2 | 0 | Y | N | '否' | |
11 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:xinwentongzhi
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | biaoti | varchar | 300 | 0 | Y | N | '' | |
3 | leibie | varchar | 50 | 0 | Y | N | '' | |
4 | neirong | mediumtext | 16777215 | 0 | Y | N | NULL | |
5 | tianjiaren | varchar | 50 | 0 | Y | N | 'hsg' | |
6 | shouyetupian | varchar | 50 | 0 | Y | N | '' | |
7 | dianjilv | int | 10 | 0 | Y | N | 0 | |
8 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |
返回目录
表名:yonghuzhuce
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | yonghuming | varchar | 50 | 0 | Y | N | '' | |
3 | mima | varchar | 50 | 0 | Y | N | '' | |
4 | xingming | varchar | 50 | 0 | Y | N | '' | |
5 | xingbie | varchar | 2 | 0 | Y | N | '' | |
6 | chushengnianyue | varchar | 50 | 0 | Y | N | '' | |
7 | varchar | 50 | 0 | Y | N | '' | ||
8 | youxiang | varchar | 50 | 0 | Y | N | '' | |
9 | dianhua | varchar | 50 | 0 | Y | N | '' | |
10 | shenfenzheng | varchar | 50 | 0 | Y | N | '' | |
11 | touxiang | varchar | 50 | 0 | Y | N | '' | |
12 | dizhi | varchar | 300 | 0 | Y | N | '' | |
13 | beizhu | varchar | 500 | 0 | Y | N | '' | |
14 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() | |
15 | issh | varchar | 2 | 0 | Y | N | '否' |
返回目录
表名:youqinglianjie
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | ID | int | 10 | 0 | N | Y | ||
2 | wangzhanmingcheng | varchar | 50 | 0 | Y | N | '' | |
3 | wangzhi | varchar | 50 | 0 | Y | N | '' | |
4 | addtime | timestamp | 19 | 0 | N | N | current_timestamp() |