系统使用技术:SSM
前端技术:css、js等
开发工具:idea
数据库:mysql5.7
项目介绍:
该系统适合基础中等或以下,功能要求不多,页面美观度高的同学。主要功能包括:查询景点信息、查询酒店信息、查询用户发布的帖子信息,用户登陆后可以对景点、酒店、帖子回复消息,可以发布帖子,系统主要作为一个旅游信息发布的平台,满足基本要求,如果是做一些信息发布网站,比如新闻资讯、特色论坛等,也可在系统上修改。
下面我们来看看功能。
系统首页:
http://localhost:8080
景点详情
对景点详细查看
查看论坛
对论坛查看并讨论
用户管理
对用户进行操作
景点管理
对景点进行操作
景点新增
可以新增景点
评论管理
对评论进行操作
评论管理
对评论进行操作
/** * index页用户登录 */ @RequestMapping(value = "login", method = RequestMethod.POST) public String userLogin(String uemail, String upwd, Model model) { //index页面登录成功图片显示路径 String prefix = "/static/upload/useravatar/"; //index页用户登录验证 if (uemail == null || uemail == "" || upwd == null || upwd == "") { session.setAttribute("msg", Msg.fail("邮箱或密码不可为空!")); return "redirect:/index"; } User user = userService.userLogin(new User(uemail, upwd)); if (user != null) { String suffix = user.getUpic(); user.setUpic(prefix+suffix); session.setAttribute("user", user); return "redirect:/index"; } else { session.setAttribute("msg", Msg.fail("还未注册或邮箱密码错误,请重新输入!")); return "redirect:/index"; } }
首页
/** * 跳转首页 */ @RequestMapping(value = {"", "index"}, method = RequestMethod.GET) public String index(ViewPointExample example, Model model) { HotelExample hotelExample = new HotelExample(); //显示首页的景点 String prefix = "/static/upload/viewavatar/"; //酒店 String prefixHotel = "/static/upload/hotelAvatar/"; example.setOrderByClause("tp_vid desc"); List<ViewPoint> viewPoints = viewPointService.selectByExample(example); for (ViewPoint viewPoint : viewPoints) { String suffix = viewPoint.getTpVpic(); viewPoint.setTpVpic(prefix + suffix); } //酒店 hotelExample.setOrderByClause("hid desc"); List<Hotel> hotels = hotelDao.selectByExample(hotelExample); for (Hotel hotel : hotels) { String suffix = hotel.getImgUrl(); hotel.setImgUrl(prefixHotel + suffix); } //传送景点 model.addAttribute("viewPoints", viewPoints); model.addAttribute("hotels", hotels); return "index"; }
以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,而且也与当前的热点话题关联,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,比较适合毕业设计和课程设计的相关应用。
好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~