——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8、Node.js≥14
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
❗没学过node.js的不要搞前后端分离项目
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明










基于javaweb的SSM+Maven高考志愿智能资讯系统(java+ssm+mysql+vue)
/ssm43x92
前台:
http://localhost:8080/ssm43x92/front/pages/login/login.html
后台:
http://localhost:8080/ssm43x92/admin/dist/index.html#/login
用户:
用户1 123456
用户2 123456
用户3 123456
用户4 123456
管理员:
admin 123456
如果要单独运行前端(front-end-admin),启动命令:npm run serve
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
@RestController @RequestMapping("/forum") public class ForumController { @Autowired private ForumService forumService;
@RequestMapping("/page")
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| return R.error("用户名已存在。"); } userService.updateById(user); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ userService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); } }
@RequestMapping("config") @RestController public class ConfigController{ @Autowired private ConfigService configService;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| messages.setUserid((Long)request.getSession().getAttribute("userId"));
messagesService.insert(messages); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody MessagesEntity messages, HttpServletRequest request){ messagesService.updateById(messages); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ messagesService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); }
@RequestMapping("/remind/{columnName}/{type}") public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) { map.put("column", columnName); map.put("type", type); if(type.equals("2")) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date remindStartDate = null; Date remindEndDate = null; if(map.get("remindstart")!=null) { Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart); remindStartDate = c.getTime(); map.put("remindstart", sdf.format(remindStartDate)); }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| EntityWrapper<ExamrecordEntity> ew = new EntityWrapper<ExamrecordEntity>(); PageUtils page = examrecordService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examrecord), params), params)); return R.ok().put("data", page); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,ExamrecordEntity examrecord, HttpServletRequest request){ if(!request.getSession().getAttribute("role").toString().equals("管理员")) { examrecord.setUserid((Long)request.getSession().getAttribute("userId")); }
EntityWrapper<ExamrecordEntity> ew = new EntityWrapper<ExamrecordEntity>(); PageUtils page = examrecordService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examrecord), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( ExamrecordEntity examrecord){ EntityWrapper<ExamrecordEntity> ew = new EntityWrapper<ExamrecordEntity>(); ew.allEq(MPUtil.allEQMapPre( examrecord, "examrecord")); return R.ok().put("data", examrecordService.selectListView(ew)); }
@RequestMapping("/query") public R query(ExamrecordEntity examrecord){ EntityWrapper< ExamrecordEntity> ew = new EntityWrapper< ExamrecordEntity>(); ew.allEq(MPUtil.allEQMapPre( examrecord, "examrecord")); ExamrecordView examrecordView = examrecordService.selectView(ew); return R.ok("查询考试记录表成功").put("data", examrecordView); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ ExamrecordEntity examrecord = examrecordService.selectById(id); return R.ok().put("data", examrecord); }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
@IgnoreAuth @RequestMapping("/autoSort") public R autoSort(@RequestParam Map<String, Object> params,YuanxiaoluqufenshuEntity yuanxiaoluqufenshu, HttpServletRequest request,String pre){ EntityWrapper<YuanxiaoluqufenshuEntity> ew = new EntityWrapper<YuanxiaoluqufenshuEntity>(); Map<String, Object> newMap = new HashMap<String, Object>(); Map<String, Object> param = new HashMap<String, Object>(); Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator(); while (it.hasNext()) { Map.Entry<String, Object> entry = it.next(); String key = entry.getKey(); String newKey = entry.getKey(); if (pre.endsWith(".")) { newMap.put(pre + newKey, entry.getValue()); } else if (StringUtils.isEmpty(pre)) { newMap.put(newKey, entry.getValue()); } else { newMap.put(pre + "." + newKey, entry.getValue()); } } params.put("sort", "clicknum"); params.put("order", "desc"); PageUtils page = yuanxiaoluqufenshuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuanxiaoluqufenshu), params), params)); return R.ok().put("data", page); }
}
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
@RestController @RequestMapping("/news") public class NewsController { @Autowired private NewsService newsService;
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=141323582409201ge
https://javayms.pages.dev?id=141323582409201ge