基于javaweb的SSM+Maven幼儿园管理系统(java+ssm+vue+echarts+maven+mysql)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

101324570701

111324570701

131324570701

141324570701

151324570701

161324570701

基于javaweb的SSM+Maven幼儿园管理系统(java+ssm+vue+echarts+maven+mysql)

项目介绍

该系统主要分为前台和后台两大功能模块,共包含三个角色:管理员、老师、家长。

具体的系统功能如下: 1.前台功能 前台为家长与老师登录,主要功能包含如下: 前台首页、学校公告、园况介绍、课程信息、论坛信息、教学特色、个人中心等功能。

2.后台功能 后台为管理员、家长与老师登录,主要功能包含如下: 后台系统登陆、个人中心、老师管理、家长管理、班级管理、学校公告管理、园况介绍管理、课程信息管理、家长沟通管理、沟通回复管理、论坛管理、系统管理等功能。

后台框架:Spring、SpringMVC、MyBatis UI界面:JSP、jQuery、vue、echarts 数据库:MySQL

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
   @RequestMapping("/query")
public R query(XuexiaogonggaoEntity xuexiaogonggao){
EntityWrapper< XuexiaogonggaoEntity> ew = new EntityWrapper< XuexiaogonggaoEntity>();
ew.allEq(MPUtil.allEQMapPre( xuexiaogonggao, "xuexiaogonggao"));
XuexiaogonggaoView xuexiaogonggaoView = xuexiaogonggaoService.selectView(ew);
return R.ok("查询学校公告成功").put("data", xuexiaogonggaoView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
XuexiaogonggaoEntity xuexiaogonggao = xuexiaogonggaoService.selectById(id);
return R.ok().put("data", xuexiaogonggao);
}

/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
XuexiaogonggaoEntity xuexiaogonggao = xuexiaogonggaoService.selectById(id);
return R.ok().put("data", xuexiaogonggao);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody XuexiaogonggaoEntity xuexiaogonggao, HttpServletRequest request){
xuexiaogonggao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(xuexiaogonggao);

xuexiaogonggaoService.insert(xuexiaogonggao);
return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
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
52
53
   private LaoshiService laoshiService;

@Autowired
private TokenService tokenService;

/**
* 登录
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
LaoshiEntity user = laoshiService.selectOne(new EntityWrapper<LaoshiEntity>().eq("laoshigonghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(), username,"laoshi", "老师" );
return R.ok().put("token", token);
}

/**
* 注册
*/
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody LaoshiEntity laoshi){
//ValidatorUtils.validateEntity(laoshi);
LaoshiEntity user = laoshiService.selectOne(new EntityWrapper<LaoshiEntity>().eq("laoshigonghao", laoshi.getLaoshigonghao()));
if(user!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
laoshi.setId(uId);
laoshiService.insert(laoshi);
return R.ok();
}

/**
* 退出
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}

/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
LaoshiEntity user = laoshiService.selectById(id);
return R.ok().put("data", user);
1
2
3
4
5
6
7
8
9
10
11
12
13
14





/**
* 学校公告
* 后端接口
* @email
*/
@RestController
@RequestMapping("/xuexiaogonggao")
public class XuexiaogonggaoController {
@Autowired
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
52
53
	if(user!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
jiazhang.setId(uId);
jiazhangService.insert(jiazhang);
return R.ok();
}

/**
* 退出
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}

/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
JiazhangEntity user = jiazhangService.selectById(id);
return R.ok().put("data", user);
}

/**
* 密码重置
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
JiazhangEntity user = jiazhangService.selectOne(new EntityWrapper<JiazhangEntity>().eq("jiazhangzhanghao", username));
if(user==null) {
return R.error("账号不存在");
}
user.setMima("123456");
jiazhangService.updateById(user);
return R.ok("密码已重置为:123456");
}


/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,JiazhangEntity jiazhang, HttpServletRequest request){

EntityWrapper<JiazhangEntity> ew = new EntityWrapper<JiazhangEntity>();
PageUtils page = jiazhangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiazhang), 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
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
52
53

/**
* 登录
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
JiazhangEntity user = jiazhangService.selectOne(new EntityWrapper<JiazhangEntity>().eq("jiazhangzhanghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(), username,"jiazhang", "家长" );
return R.ok().put("token", token);
}

/**
* 注册
*/
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody JiazhangEntity jiazhang){
//ValidatorUtils.validateEntity(jiazhang);
JiazhangEntity user = jiazhangService.selectOne(new EntityWrapper<JiazhangEntity>().eq("jiazhangzhanghao", jiazhang.getJiazhangzhanghao()));
if(user!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
jiazhang.setId(uId);
jiazhangService.insert(jiazhang);
return R.ok();
}

/**
* 退出
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}

/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
JiazhangEntity user = jiazhangService.selectById(id);
return R.ok().put("data", user);
}

/**
* 密码重置


项目链接:
https://javayms.github.io?id=161524180701201hy
https://javayms.pages.dev?id=161524180701201hy