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







基于javaweb的SpringBoot儿童爱心管理系统(java+springboot+maven+vue+elementui+layui+mysql)
项目介绍
基于SpringBoot Vue的儿童爱心网站
角色:管理员、用户
管理员:管理员登录系统后,可以对首页、个人中心、用户管理、宣传新闻管理、志愿活动管理、爱心捐赠管理、旧物捐赠管理、活动报名管理、系统管理等功能进行相应的操作管理
用户:用户进入系统可以查看首页、个人中心、旧物捐赠管理、活动报名管理等内容,进行详细的操作、系统首页的主要功能展示了首页、宣传新闻、志愿活动、爱心捐赠、个人中心、后台管理等信息
技术栈
后端:SpringBoot+Mybaits
前端:Vue+ElementUI+Layui+HTML+CSS+JS
文档介绍(可行性研究、技术可行性分析、经济可行性分析、运行可行性分析、系统现状分析、功能需求、系统设计规则及相关技术准备、总体设计、设计的原则及目标、系统的主要的功能结构、系统设计、数据表E-R图、数据库的主要表结构、系统的详细设计与实现、系统的功能模块、管理员功能模块、用户功能模块、系统测试与维护、测试内容、管理员登录测试、信息测试):
——————————CodeStart——————————
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
| return R.ok().put("data", page); }
@IgnoreAuth @RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,JiuwujuanzengEntity jiuwujuanzeng, HttpServletRequest request){ EntityWrapper<JiuwujuanzengEntity> ew = new EntityWrapper<JiuwujuanzengEntity>(); PageUtils page = jiuwujuanzengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiuwujuanzeng), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( JiuwujuanzengEntity jiuwujuanzeng){ EntityWrapper<JiuwujuanzengEntity> ew = new EntityWrapper<JiuwujuanzengEntity>(); ew.allEq(MPUtil.allEQMapPre( jiuwujuanzeng, "jiuwujuanzeng")); return R.ok().put("data", jiuwujuanzengService.selectListView(ew)); }
@RequestMapping("/query") public R query(JiuwujuanzengEntity jiuwujuanzeng){ EntityWrapper< JiuwujuanzengEntity> ew = new EntityWrapper< JiuwujuanzengEntity>(); ew.allEq(MPUtil.allEQMapPre( jiuwujuanzeng, "jiuwujuanzeng")); JiuwujuanzengView jiuwujuanzengView = jiuwujuanzengService.selectView(ew); return R.ok("查询旧物捐赠成功").put("data", jiuwujuanzengView); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ JiuwujuanzengEntity jiuwujuanzeng = jiuwujuanzengService.selectById(id); return R.ok().put("data", jiuwujuanzeng); }
@IgnoreAuth
|
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
|
@RequestMapping("/save") public R save(@RequestBody HuodongbaomingEntity huodongbaoming, HttpServletRequest request){ huodongbaoming.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); huodongbaomingService.insert(huodongbaoming); return R.ok(); }
@RequestMapping("/add") public R add(@RequestBody HuodongbaomingEntity huodongbaoming, HttpServletRequest request){ huodongbaoming.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); huodongbaomingService.insert(huodongbaoming); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody HuodongbaomingEntity huodongbaoming, HttpServletRequest request){ huodongbaomingService.updateById(huodongbaoming); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Wrapper<YonghuEntity> wrapper = new EntityWrapper<YonghuEntity>(); if(map.get("remindstart")!=null) { wrapper.ge(columnName, map.get("remindstart")); } if(map.get("remindend")!=null) { wrapper.le(columnName, map.get("remindend")); }
int count = yonghuService.selectCount(wrapper); return R.ok().put("count", count); }
}
|
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
|
@RestController @RequestMapping("/yonghu") public class YonghuController { @Autowired private YonghuService yonghuService;
@Autowired private TokenService tokenService;
@IgnoreAuth @RequestMapping(value = "/login") public R login(String username, String password, String captcha, HttpServletRequest request) { YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuzhanghao", username)); if(user==null || !user.getMima().equals(password)) { return R.error("账号或密码不正确");
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| File file1 = new File(upload.getAbsolutePath()+"/"+face1); File file2 = new File(upload.getAbsolutePath()+"/"+face2); String img1 = Base64Util.encode(FileUtil.FileToByte(file1)); String img2 = Base64Util.encode(FileUtil.FileToByte(file2)); MatchRequest req1 = new MatchRequest(img1, "BASE64"); MatchRequest req2 = new MatchRequest(img2, "BASE64"); ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>(); requests.add(req1); requests.add(req2); res = client.match(requests); System.out.println(res.get("result")); } catch (FileNotFoundException e) { e.printStackTrace(); return R.error("文件不存在"); } catch (IOException e) { e.printStackTrace(); } return R.ok().put("score", com.alibaba.fastjson.JSONObject.parse(res.getJSONObject("result").get("score").toString())); } }
|
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 51
|
@IgnoreAuth @RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,DiscussxuanchuanxinwenEntity discussxuanchuanxinwen, HttpServletRequest request){ EntityWrapper<DiscussxuanchuanxinwenEntity> ew = new EntityWrapper<DiscussxuanchuanxinwenEntity>(); PageUtils page = discussxuanchuanxinwenService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussxuanchuanxinwen), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( DiscussxuanchuanxinwenEntity discussxuanchuanxinwen){ EntityWrapper<DiscussxuanchuanxinwenEntity> ew = new EntityWrapper<DiscussxuanchuanxinwenEntity>(); ew.allEq(MPUtil.allEQMapPre( discussxuanchuanxinwen, "discussxuanchuanxinwen")); return R.ok().put("data", discussxuanchuanxinwenService.selectListView(ew)); }
@RequestMapping("/query") public R query(DiscussxuanchuanxinwenEntity discussxuanchuanxinwen){ EntityWrapper< DiscussxuanchuanxinwenEntity> ew = new EntityWrapper< DiscussxuanchuanxinwenEntity>(); ew.allEq(MPUtil.allEQMapPre( discussxuanchuanxinwen, "discussxuanchuanxinwen")); DiscussxuanchuanxinwenView discussxuanchuanxinwenView = discussxuanchuanxinwenService.selectView(ew); return R.ok("查询宣传新闻评论表成功").put("data", discussxuanchuanxinwenView); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ DiscussxuanchuanxinwenEntity discussxuanchuanxinwen = discussxuanchuanxinwenService.selectById(id); return R.ok().put("data", discussxuanchuanxinwen); }
@IgnoreAuth @RequestMapping("/detail/{id}") public R detail(@PathVariable("id") Long id){ DiscussxuanchuanxinwenEntity discussxuanchuanxinwen = discussxuanchuanxinwenService.selectById(id); return R.ok().put("data", discussxuanchuanxinwen);
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=391524170701201gr
https://javayms.pages.dev?id=391524170701201gr