基于JSP开发的旅游网站管理系统

news/2024/5/17 11:28:27/文章来源:https://blog.csdn.net/Fbbhahaha/article/details/109648121

10092基于JSP开发的旅游网站管理系统

代码:
鏈-椄:https://pan@baidu@com/s/11qEwMtFAmmwMDLQO_Pbk2Q (把@换成 . 就可正常访问)
趧-紶-碼:6886
f/u枝此段-吶傛打开baidu網盤手机App,caozuo更方便哦

技术
JAVA + JSP

工具
eclipse + tomact + mysql + jdk

功能详情

前台功能后台功能
首页管理员账号管理
塞北人文注册用户管理
塞北故事塞北人文管理
酒店信息塞北故事管理
旅游景点塞北景点管理
自驾游线路自驾游线路管理
旅游地图查询酒店信息管理
天气预报留言板管理
在线留言修改密码
用户注册退出系统
后台管理

系统相关截图

● 系统首页

在这里插入图片描述

● 后台首页
在这里插入图片描述

package com.service.impl;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.dao.DepartmentDao;
import com.entity.Department;
import com.entity.PageBean;
import com.service.DepartmentService;
/**

  • 部门管理的业务层实现类
  • @author hope
    */

@Transactional
public class DepartmentServiceImpl implements DepartmentService {
// 注入serviceDao
private DepartmentDao departmentDao;

public void setDepartmentDao(DepartmentDao departmentDao) {this.departmentDao = departmentDao;
}@Override
/*** 分页查询部门的方法*/
public PageBean<Department> findByPage(Integer currPage) {PageBean<Department> pageBean = new PageBean<Department>();// 封装当前页数pageBean.setCurrPage(currPage);// 封装每页记录数int pageSize = 3;pageBean.setPageSize(pageSize);// 封装总记录数int totalCount = departmentDao.findCount();pageBean.setTotalCount(totalCount);// 封装页数int totalPage;if(totalCount%pageSize == 0){totalPage = totalCount/pageSize;}else{totalPage = totalCount/pageSize+1; }pageBean.setTotalPage(totalPage);// 封装当前页记录int begin= (currPage - 1)*pageSize;List<Department> list = departmentDao.findByPage(begin, pageSize);pageBean.setList(list);return pageBean;
}@Override
/*** 添加部门的业务层实现*/
public void save(Department department) {// TODO Auto-generated method stubdepartmentDao.save(department);
}@Override
/*** 根据id查询部门的业务层实现*/
public Department findById(Integer did) {// TODO Auto-generated method stubreturn departmentDao.findById(did);
}@Override
/*** 更新部门的业务层实现*/
public void update(Department department) {// TODO Auto-generated method stubdepartmentDao.update(department);
}@Override
/*** 删除部门的业务层实现*/
public void delete(Department department) {// TODO Auto-generated method stubdepartmentDao.delete(department);
}@Override
/*** 业务层查询所有部门*/
public List<Department> findAll() {// TODO Auto-generated method stubreturn departmentDao.findAll();
}

}
package com.service.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.transaction.annotation.Transactional;

import com.dao.DepartmentDao;
import com.dao.EmployeeDao;
import com.entity.Department;
import com.entity.Employee;
import com.entity.PageBean;
import com.service.EmployeeService;
@Transactional
public class EmployeeServiceImpl implements EmployeeService {
private EmployeeDao employeeDao;

public void setEmployeeDao(EmployeeDao employeeDao) {this.employeeDao = employeeDao;
}@Override
/*** 业务层登录方法*/
public Employee login(Employee employee) {// TODO Auto-generated method stubEmployee eEmployee = employeeDao.findByUsernameAndPassword(employee);return eEmployee;
}@Override
/*** 业务层查询指定页面方法*/
public PageBean<Employee> findByPage(Integer currPage) {// TODO Auto-generated method stubPageBean<Employee> pageBean = new PageBean<Employee>();// 封装当前页数pageBean.setCurrPage(currPage);// 封装每页记录数int pageSize = 3;pageBean.setPageSize(pageSize);// 封装总记录数int totalCount = employeeDao.findCount();pageBean.setTotalCount(totalCount);// 封装页数int totalPage;if(totalCount%pageSize==0){totalPage = totalCount/pageSize;}else{totalPage = totalCount/pageSize + 1; }pageBean.setTotalPage(totalPage);// 封装当前页记录int begin= (currPage - 1)*pageSize;List<Employee> list = employeeDao.findByPage(begin, pageSize);pageBean.setList(list);return pageBean;
}@Override
/*** 业务层添加员工的方法*/
public void save(Employee employee) {// TODO Auto-generated method stubemployeeDao.save(employee);}@Override
/*** 业务层根据id查询员工的方法*/
public Employee findById(Integer eid) {// TODO Auto-generated method stubreturn employeeDao.findById(eid);
}@Override
/*** 编辑员工的业务层实现方法*/
public void update(Employee employee) {// TODO Auto-generated method stubemployeeDao.update(employee);		
}@Override
/*** 业务层员工删除*/
public void delete(Employee employee) {// TODO Auto-generated method stubemployeeDao.delete(employee);
}

}
package com.service;

import java.util.List;

import com.entity.Department;
import com.entity.PageBean;
/**

  • 部门管理的业务层接口实现类

  • @author hope
    */
    public interface DepartmentService {

    PageBean findByPage(Integer currPage);

    void save(Department department);

    void update(Department department);

    Department findById(Integer did);

    void delete(Department department);

    List findAll();

}
package com.service;

import com.entity.Department;
import com.entity.Employee;
import com.entity.PageBean;

public interface EmployeeService {

Employee login(Employee employee);PageBean<Employee> findByPage(Integer currPage);void save(Employee employee);void update(Employee employee);Employee findById(Integer eid);void delete(Employee employee);

}

<?xml version="1.0"?> package com.entity;

import java.util.HashSet;
import java.util.Set;

/**

  • Department entity. @hope Eclipse Tools
    */

public class Department implements java.io.Serializable {

private static final long serialVersionUID = 1L;
private Integer did;
private String dname;
private String ddesc;
private Set<Employee> employees = new HashSet<Employee>();// Constructors/** default constructor */
public Department() {
}/** full constructor */
public Department(String dname, String ddesc, Set employees) {this.dname = dname;this.ddesc = ddesc;this.employees = employees;
}// Property accessorspublic Integer getDid() {return this.did;
}public void setDid(Integer did) {this.did = did;
}public String getDname() {return this.dname;
}public void setDname(String dname) {this.dname = dname;
}public String getDdesc() {return this.ddesc;
}public void setDdesc(String ddesc) {this.ddesc = ddesc;
}public Set getEmployees() {return this.employees;
}public void setEmployees(Set employees) {this.employees = employees;
}

}package com.entity;

import java.util.List;
/**

  • 封装页面显示所需要的数据
  • @author hope
  • @param
    */
    public class PageBean {
    // 当前页数
    private int currPage;
    // 每页显示数量
    private int pageSize;
    // 总页数
    private int totalPage;
    // 总记录数
    private int totalCount;
    // 每页显示的数据
    private List list;
    // 当前页数,每页记录数,总记录数,总页数,每页显示数据

public int getCurrPage() {
return currPage;
}
public void setCurrPage(int currPage) {
this.currPage = currPage;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public List getList() {
return list;
}
public void setList(List list) {
this.list = list;
}

}
package com.entity;

import java.util.Date;

/**

  • Employee entity. @hope Eclipse Tools
    */

public class Employee implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
// 员工id
private Integer eid;
// 员工部门
private Department department;
// 员工name
private String ename;
// 员工sex
private String sex;
// 生日
private Date birthday;
// 加入时间
private Date joinDate;
// 员工编号
private String eno;
private String username;
private String password;

// Constructors/** default constructor */
public Employee() {
}/** full constructor */
public Employee(Department department, String ename, String sex,Date birthday, Date joinDate, String eno, String username,String password) {this.department = department;this.ename = ename;this.sex = sex;this.birthday = birthday;this.joinDate = joinDate;this.eno = eno;this.username = username;this.password = password;
}// Property accessorspublic Integer getEid() {return this.eid;
}public void setEid(Integer eid) {this.eid = eid;
}public Department getDepartment() {return this.department;
}public void setDepartment(Department department) {this.department = department;
}public String getEname() {return this.ename;
}public void setEname(String ename) {this.ename = ename;
}public String getSex() {return this.sex;
}public void setSex(String sex) {this.sex = sex;
}public Date getBirthday() {return this.birthday;
}public void setBirthday(Date birthday) {this.birthday = birthday;
}public Date getJoinDate() {return this.joinDate;
}public void setJoinDate(Date joinDate) {this.joinDate = joinDate;
}public String getEno() {return this.eno;
}public void setEno(String eno) {this.eno = eno;
}public String getUsername() {return this.username;
}public void setUsername(String username) {this.username = username;
}public String getPassword() {return this.password;
}public void setPassword(String password) {this.password = password;
}

}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.luyixian.cn/news_show_807857.aspx

如若内容造成侵权/违法违规/事实不符,请联系dt猫网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

基于java的心理健康网站系统设计与实现

10001-心理健康测评网站 开发工具 eclipse tomact mysql jdk 功能详情

基于SSH开发的在线教学网站 java mysql

基于SSH开发的在线教学网站 技术 Spring Struts Hibernate 工具 eclipse tomact mysql jdk 功能详情 前台功能&#xff1a;后台功能&#xff1a;网站首页系统属性我的信息修改密码教学课件系统管理教学视频教学管理考试试题课程管理在线自测学生管理留言板讨论管理进入…

基于SpringBoot的招生咨询网站

10190_基于SpringBoot的招生咨询网站 技术 SpringBoot 工具 eclipse tomcat mysql jdk 功能详情 前台&#xff1a; 登录注册、录取信息查询、招生计划、专业查询、年历信息、问题解答、招生论坛 后台&#xff1a;专业管理、招生计划、系统管理、问题解答、信息管理、录取…

亿级流量网站架构核心技术 跟开涛学搭建高可用高并发系统

亿级流量网站架构核心技术 跟开涛学搭建高可用高并发系统1.高并发原则1.1 无状态1.2 拆分1.3 服务化1.4 消息队列1.5 数据异构1.6 缓存银弹1.7 并发化2 高可用原则2.1 降级2.2 限流2.3 切流量2.4 可回滚3 业务设计原则3.1 防重设计3.2 幂等设计3.3 流程可定义3.4 状态与状态机…

html如何访问外部网站,利用Github部署外部可访问的H5网站(无需服务器)

没有服务器如何外部访问你的HTML 本文是借助GitHub 实现 一半测试或者做个小的静态页面还是可以的。 下文是转载(像素级复制)亲测有效&#xff0c;找了几篇博客下文算是比较全的。Step1 :登录到自己的Github&#xff0c;查看代码仓库点击“Repositories”进入自己的代码仓库页面…

holdpwd php,PHPMyWind后台管理界面的SQL注入漏洞 - 网站安全

后台管理界面因为过滤不严格导致SQL注入漏洞&#xff0c;可以使权限较低的管理员取得较高权限&#xff0c;以及获取并修改超级管理员的用户名密码。存在问题的代码&#xff0c;admin_save.php 59-101行&#xff0c;SQL语句中的$id存在注入else if($action update){//创始人账号…

网站地图在线生成html,如何制作网站地图(sitemap.html和sitemap.xml)?

总所周知&#xff0c;一个网站的网站地图非常重要&#xff0c;也是SEO站内优化的其中一个基本步骤&#xff0c;可总有人跟我咨询&#xff0c;到底如何制作网站地图&#xff0c;其实很简单&#xff0c;网站地图分为&#xff1a;sitemap.html(百度搜索引擎)和sitemap.xml(谷歌搜索…

网站服务器接入地在哪里查,接入服务器的地址在哪查

接入服务器的地址在哪查 内容精选换一换使用Touch对终端进行配置前需要先将Touch接入终端&#xff0c;接入方式包括TOUCH口连接、交换机网口连接和Wi-Fi连接。TOUCH口连接将Touch接入终端的TOUCH口&#xff0c;如图1所示。TOUCH口连接TOUCH口具有供电功能&#xff0c;使用TOUCH…

jsp+ssm体育新闻资讯网站springboot

体育资讯网站的设计与实现的需求和管理上的不断提升&#xff0c;体育资讯网站的设计与实现的潜力将无限扩大&#xff0c;体育资讯网站的设计与实现在业界被广泛关注&#xff0c;本网站及对此进行总体分析&#xff0c;将体育资讯网站的发展提供参考。体育资讯网站的设计与实现对…

域名被墙检测网站_网站备案前一定要检查这些域名隐患!

网站备案是域名主机的一体化过程&#xff0c;而域名是网站备案的载体。一般网站备案的展现形式是在域名上的。所以域名对网站备案是很重要的哦&#xff01;1、首先&#xff0c;域名后缀的选择。可在工信部备案的域名后缀&#xff1a;.cn/.ren/.wang/.citic/.top/.sohu/.xin/.co…

nodejs+vue菜谱美食食谱网站系统

目 录 摘 要 I 1 绪论 1 1.1研究背景 1 1. 2研究现状 1 1. 3研究内容 2 2 系统关键技术 3 前端技术&#xff1a;nodejsvueelementui 前端&#xff1a;HTML5,CSS3、JavaScript、VUE 下面我们讲解 1、 node_modules文件夹(有npn install产生) 这文件夹…

nodejs+vue+elementui数字化家谱网站管理系统express

目 录 第一章 绪 论 1 1.1背景及意义 1 1.2国内外研究概况 2 1.3 研究的内容 2 第二章 关键技术的研究 3 前端技术&#xff1a;nodejsvueelementui 前端&#xff1a;HTML5,CSS3、JavaScript、VUE 下面我们讲解 1、 node_modules文件夹(有npn install产生) …

nodejs+vue+elementui服装销售-汉服文化宣传网站mysql

前端技术&#xff1a;nodejsvueelementui 前端&#xff1a;HTML5,CSS3、JavaScript、VUE 用户的主要功能有&#xff1a; 1.用户注册和登陆系统 2.查看汉服知识信息 3.用户查看服装展示信息 4.用户可以在线购买汉服&#xff0c;把商品加入购物车 4.用户提交购物车&#xff0c;生…

python+django家政服务中介网站系统

通常 一个Django model 对应一张数据表&#xff0c;model是以类的形式表现的 实现了ORM 对象与数据库映射 隐藏了数据访问细节 不需要写sql语句 admin是Django自带的 自动化数据管理界面 前端技术&#xff1a;nodejsvueelementui 我们最初的项目结构由五个文件组成&#xf…

springboot+vue网上零食购物商城网站java

零食商店管理系统是基于java编程语言&#xff0c;mysql数据库&#xff0c;springboot框架和idea开发工具开发&#xff0c;本系统主要分为用户和管理员两个角色&#xff0c;用户可以注册登陆查看零食资讯&#xff0c;零食分类&#xff0c;零食详情&#xff0c;收藏零食&#xff…

Springboot网络图片相册照片分享网站vue

图片分享网站主要是为了提高工作人员的工作效率和更方便快捷的满足用户&#xff0c;更好存储所有数据信息及快速方便的检索功能&#xff0c;对系统的各个模块是通过许多今天的发达系统做出合理的分析来确定考虑用户的可操作性&#xff0c;遵循开发的系统优化的原则&#xff0c;…

java基于ssm的旅游景点酒店预订网站

在经济快速发展的带动下&#xff0c;旅游业的发展也是越来越快速。人们对旅游信息的获取需求很大。在互联网飞速发展的今天&#xff0c;制作一个旅游网站是非常必要的。本网站是借鉴其他人的开发基础上&#xff0c;用MySQL数据库和JSP定制了武夷山旅游网站。系统前台实现了用户…

Springboot+ssm宠物美容网站idea maven

开发一个宠物美容服务网站&#xff0c;该网站能为用户提供一下便捷服务。 预期成果&#xff1a; &#xff08;1&#xff09; 用户可以在本系统&#xff0c;根据自己情况预约宠物活动信息。 &#xff08;2&#xff09; 用户可以预约宠物洗澡&#xff0c;宠物剪发等。 &…

php mysql校园网的大学生社交网站

目 录 第1章 绪论 1 1.1开发背景 1 1.2开发现状 1 1.3论文结构 1 1.4本章小结 1 第2章 系统开发技术的介绍 3 2.1 Adobe Dreamweaver简介 3 2.2 HTML/CSS简介 3 2.3 PHP(Hypertext Preprocessor)简介 3 2.4 MySQL数据库概念和特点 4 2.5本章小结…

php mysql c语言教学网站

目 录 1 绪论 1 1.1 课题背景 1 1.2 课题研究的目的和意义 1 1.3 课题的可行性研究 2 1.3.1 技术可行性 2 1.3.2 经济可行性 2 1.3.3 操作可行性 2 1.3.4 法律可行性 2 2 开发技术介绍 3 2.1 B/S体系结构 3 2.2 PHP技术 4 2.3 MYSQL数据库 …