博主主页:猫头鹰源码
博主简介:Java领域优质创作者、CSDN博客专家、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战
主要内容:毕业设计(Javaweb项目|小程序等)、简历模板、学习资料、面试题库、技术咨询
文末联系获取
项目介绍:
该系统基于springboot技术,数据层为MyBatis,mysql数据库,页面采用html,具有完整的业务逻辑,适合选题:springboot、校园、二手、校园二手、需求市场、供需市场、二手网站等。
系统包含技术:
后端:springboot、mybatis
前端:layui,js,css等,html页面
开发工具:idea
数据库:mysql 5.7
JDK版本:jdk1.8
部分截图说明:
下面是首页
登录页面
商品详情
我想要
我想要的商品
商品收藏
个人信息
发布商品
部分代码:
@ResponseBody@RequestMapping(value = {"/need/fav/del"})public JsonReturn needfavdel(Long favId, Model model){int status = smService.needfavdel(favId);if (status <=0 ) return JsonReturn.fail(CommonStatus.FAULT);return JsonReturn.success();}@ResponseBody@RequestMapping(value = {"/need/fav"})public JsonReturn sm(XyzNeedFav needFav, Model model){int status = smService.insertFav(needFav);if (status <=0 ) return JsonReturn.fail(CommonStatus.FAULT);return JsonReturn.success();}@RequestMapping(value = {"/{needId}"})public String sm(@PathVariable Long needId,Model model){XyzNeed need = smService.findNeedById(needId);model.addAttribute("need",need);return "/sm/detail";}@RequestMapping(value = {"/work"})public String work(Model model){List<XyzNeed> list = smService.findNeedByType(2);model.addAttribute("list",list);return "/sm/work";}@RequestMapping(value = {"/multiple"})public String multiple(Model model){List<XyzNeed> list = smService.findNeedByType(3);model.addAttribute("list",list);return "/sm/multiple";}@RequestMapping(value = {"/single"})public String single(Model model){List<XyzNeed> list = smService.findNeedByType(1);model.addAttribute("list",list);return "/sm/single";}@RequestMapping(value = {"","/index"})public String smIndex(Model model){/*轮播图 */List<XyzContent> listSMLUNBOTU = indexService.findContentByCID(SMLUNBOTU);model.addAttribute("listSMLUNBOTU",listSMLUNBOTU);log.info(listSMLUNBOTU.toString());/*单人 */List<XyzContent> listXUQIU = indexService.findContentByCID(XUQIU);List<XyzNeed> needXUQIU = new ArrayList<>();for (XyzContent content:listXUQIU) {XyzNeed need = smService.findNeedById(Long.valueOf(content.getTitle()));needXUQIU.add(need);}model.addAttribute("needXUQIU",needXUQIU);model.addAttribute("listXUQIU",listXUQIU);/*work */List<XyzContent> listJIANZHI = indexService.findContentByCID(JIANZHI);List<XyzNeed> needJIANZHI = new ArrayList<>();for (XyzContent content:listJIANZHI) {XyzNeed need = smService.findNeedById(Long.valueOf(content.getTitle()));needJIANZHI.add(need);}model.addAttribute("needJIANZHI",needJIANZHI);model.addAttribute("listJIANZHI",listJIANZHI);/*众包 */List<XyzContent> listZHONGBAO = indexService.findContentByCID(ZHONGBAO);List<XyzNeed> needZHONGBAO = new ArrayList<>();for (XyzContent content:listZHONGBAO) {XyzNeed need = smService.findNeedById(Long.valueOf(content.getTitle()));needZHONGBAO.add(need);}model.addAttribute("needZHONGBAO",needZHONGBAO);model.addAttribute("listZHONGBAO",listZHONGBAO);return "/sm/index";}@RequestMapping("/publish")public String publish(){return "/sm/publish";}@RequestMapping("/search")public String search(@RequestParam(defaultValue = "")String param, Model model){List<XyzNeed> list = smService.search(param);log.info(list.toString());List<XyzNeed> list1 = new ArrayList<>();List<XyzNeed> list2 = new ArrayList<>();List<XyzNeed> list3 = new ArrayList<>();for (XyzNeed need: list) {if (need.getXyzType() == 1) list1.add(need);if (need.getXyzType() == 2) list2.add(need);if (need.getXyzType() == 3) list3.add(need);}model.addAttribute("needList1",list1);model.addAttribute("needList2",list2);model.addAttribute("needList3",list3);return "/sm/search";}
以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。
好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~