首页 > 编程知识 正文

javaweb毕业设计论文,基于web的旅游网站毕业设计

时间:2023-05-03 08:55:28 阅读:117136 作者:4111

文章目录0前言获取本项目源代码和论文其他web项目1课题背景2实现功能2.1系统总体设计2.2业务流程3执行效果4部分实现代码最后

前言今天,我将向大家展示前辈帮助同学设计并实现基于java web的旅游网站的毕业设计。 需要的同学点击下面获取源代码和论文。

获取更多本项目源代码和论文其他网络项目1的课题背景随着旅游业的迅速发展21世纪中国成为世界上最大的旅游国家为了方便旅行者的最佳旅行选择需要获取相关的旅行信息塞北村镇旅游网站帮助客户如何咨询自己的旅行社和查找旅游信息。 因此,开发塞北村镇旅游网站,可以公开塞北村镇的旅游信息,让客户自己在网上方便快捷地了解旅行社的所有旅游动态,大大方便了游客的旅游信息查询和获取,游客也想在电子信息平台下进行咨询和消费。

双功能实现2.1系统总体设计

塞北村镇旅游网站是基于B/S架构的旅游网站。 通过全方位的综合分析,该系统功能设计比较全面,能够满足大部分用户的需求。 但是,不可能满足所有客户的要求,只能尽可能完善网站的功能,努力取得更好的效果。 塞北村镇旅游网站主要通过各功能模块的介绍,宣传塞北村镇旅游,包括主页、塞北人文、塞北故事等部分。

2.2业务流程的业务流程分析也是重要的一环。 他的分析应该参照信息流的全过程,对各个环节进行业务处理、数据流图的调查分析。 数据流图是计算机软件系统运行的图形表示。 这样可以简化工作难度,使开发人员更容易准确地表达交流。 同时便于研发方、维护方、测试方、APP应用方的相互交流合作。 也就是说,数据流图不仅便于专家阅读理解,也适用于非专家。 需求分析是一种易于修改和交流的表达工具。

整体流程:

客户业务流程:

3运转效果

4部分实现代码package com.action; import java.util.Date; import java.util.List; import java.util.Map; importorg.Apache.struts2. servletactioncontext; import org.hibernate.Session; import com.dao.TForumsDAO; import com.dao.TThreadsDAO; import com.dao.TTopicDAO; import com.model.TForums; import com.model.TThreads; import com.model.TTopic; import com.model.TUser; import com.opensymphony.xwork2. action context; import com.opensymphony.xwork2. action support; publicclassthreadactionextendsactionsupport { privatetforumsdaoforumsdao; 隐私主题大道; 私密性萨德萨德; 私密int PID; 私密int FID; 私有字符串子对象; 私有字符串内容; 私有字符串消息; 私有字符串路径; publicstringtoaddthread ((tforumsforums=forums Dao.find byid ) FID; maprequest=(map ) servletactioncontext.get context ().get ) ' request ); request.put('forums ',forums ); 返回操作支持. success; }public String threadAdd () map session=action context.get context ) ).getSession ); tuseruser=(tuser ) session.get ) ) user ); 日期=new date (; TTopic topic=new TTopic (; topic.setFID(FID; topic.set author (user.getusername () ); topic.setAuthorid(user.getid ) ); topic.setsubject(subject; topic.setview(0; topic.setreplies(0; topic.set添加时间(date; topicDao.save(topic ); int pid=topic.getPid (; TThreads threads=new TThreads (; threads.setPID(PID; threads.setFID(FID; threads.setftype(0; t

hreads.setAuthor(user.getUserName());threads.setAuthorid(user.getId());threads.setSubject(subject);threads.setContent(content);threads.setAddtime(date);threadsDAO.save(threads);this.setMessage("主题发布成功");this.setPath("threadview.action?pid="+pid);return "succeed";}public String threadview(){String sql="update TTopic set view=view+1 where pid="+pid;topicDAO.getHibernateTemplate().bulkUpdate(sql);TTopic topic = topicDAO.findById(pid);TForums forums = forumsDAO.findById(topic.getFid());Session session = threadsDAO.getSessionFactory().openSession();String getMain = "select tid,author,subject,content,addtime from t_threads where pid="+pid+" order by addtime limit 1";Object[] objThreadsMain = (Object[])session.createSQLQuery(getMain).list().get(0); TThreads threadsMain = new TThreads();threadsMain.setTid((Integer)objThreadsMain[0]);threadsMain.setAuthor((String)objThreadsMain[1]);threadsMain.setSubject((String)objThreadsMain[2]);threadsMain.setContent((String)objThreadsMain[3]);threadsMain.setAddtime((Date)objThreadsMain[4]);List threads = threadsDAO.getHibernateTemplate().find("from TThreads where pid="+pid+" and ftype=1 order by addtime");Map request=(Map)ServletActionContext.getContext().get("request");request.put("topic", topic);request.put("forums", forums);request.put("threadsMain", threadsMain);request.put("threadsList", threads);session.close();return SUCCESS;}public String replace(){Map session= ActionContext.getContext().getSession();TUser user = (TUser)session.get("user");String sql="update TTopic set replies=replies+1 where pid="+pid;topicDAO.getHibernateTemplate().bulkUpdate(sql);TThreads threads = new TThreads();threads.setPid(pid);threads.setFid(fid);threads.setFtype(1);threads.setAuthor(user.getUserName());threads.setAuthorid(user.getId());threads.setSubject(subject);threads.setContent(content);threads.setAddtime(new Date());threadsDAO.save(threads);this.setMessage("主题回复成功");this.setPath("threadview.action?pid="+pid);return "succeed";}public TTopicDAO getTopicDAO() {return topicDAO;}public void setTopicDAO(TTopicDAO topicDAO) {this.topicDAO = topicDAO;}public TThreadsDAO getThreadsDAO() {return threadsDAO;}public void setThreadsDAO(TThreadsDAO threadsDAO) {this.threadsDAO = threadsDAO;}public TForumsDAO getForumsDAO() {return forumsDAO;}public void setForumsDAO(TForumsDAO forumsDAO) {this.forumsDAO = forumsDAO;}public int getPid() {return pid;}public void setPid(int pid) {this.pid = pid;}public int getFid() {return fid;}public void setFid(int fid) {this.fid = fid;}public String getSubject() {return subject;}public void setSubject(String subject) {this.subject = subject;}public String getContent() {return content;}public void setContent(String content) {this.content = content;}public String getMessage() {return message;}public void setMessage(String message) {this.message = message;}public String getPath() {return path;}public void setPath(String path) {this.path = path;}} 最后

学长亲自接毕业设计,有需要的同同学:
(q扣)
746876041

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。