一、项目运行
环境配置:
Jdk1.8 + Tomcat8.5 + mysql + Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)
项目技术:
JSP + Servlert + html+ css + JavaScript + JQuery + Ajax 等等;
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
map.put("type","error");
map.put("msg","两次密码不一致");
return map;
}
}
/**
* 查看个人信息
* @param httpSession
* @return
*/
@RequestMapping("inforEmployee.do")
public @ResponseBody EmployeeCustomVo getInforEmployee(HttpSession httpSession){
Integer id = (Integer) httpSession.getAttribute("employeeId");
EmployeeCustomVo employeeCustomVo = userInforService.getInforEmployee(id);
return employeeCustomVo;
}
/**
* 修改个人信息
* @param httpSession
* @param employee
* @return
*/
@ResponseBody
@RequestMapping("updateInforEmployee.do")
public Message updateInforEmployee(HttpSession httpSession, Employee employee){
@RequestMapping(value = "/adminLogin.do")
@ResponseBody
public Message adminLogin(HttpSession httpSession, String username,
String password, String identifyingcode)
{
if(StringUtils.isEmpty(username)) {
return Message.error("请填写账号");
}
if(StringUtils.isEmpty(password)) {
return Message.error("请填写密码");
}
if(StringUtils.isEmpty(identifyingcode)) {
return Message.error("请填写验证码");
}
String code = (