}
if (userService.isExist(username)) {
request.setAttribute("errMsg", "注册失败!可能该用户名已经存在哦,亲!");
return "register";
}
User user = new User(username, password, telephone, User.CUSTOMER);
userService.createUser(user);
request.setAttribute("errMsg", "恭喜您注册成功啊,亲!");
request.getSession().setAttribute("userLogin", user);
return "customer";