User user=userService.checkLogin(username, password);if(user!=null){//登录成功//request.getSession().setAttribute("user",user);//b.生成token(自定义生成规则)String token =TokenUtil.createToken(username);//c.将token回传给前端returnnewResultVO(0,"success",token); } }catch(Exception e) { e...
User user=userService.checkLogin(username, password);if(user!=null){//登录成功//request.getSession().setAttribute("user",user);//b.生成token(自定义生成规则)String token =TokenUtil.createToken(username);//c.将token回传给前端returnnewResultVO(0,"success",token); } }catch(Exception e) { e...