该用户从未签到
|
redirectAttributes.addFlashAttribute("user", user);
, [; e: o* p6 A! m5 R redirectAttributes.addFlashAttribute("message", "用户名或密码错误!"); t( w8 ]6 ?0 N% `$ ^; P
modelAndView.setViewName("redirect:login");
- v3 t9 C( W* |5 ]如以上代码,返回给前端message是可行的,但是返回user这个实体不行,求思路
2 `5 @6 x4 I9 H( S3 b6 x5 h |
|