public Result login(@Validated(value={Login.class}) @RequestBody User user, BindingResult result, HttpSession session, HttpServletRequest request) throws UnsupportedEncodingException {
if (result.hasErrors()) {
...
...
@@ -145,6 +147,7 @@ public class UserController {
}
}
session.setAttribute("mobile",mobile);
//更新登录时间和ip地址
//登录成功记录登录日志
LoginLog loginLog = new LoginLog();
loginLog.setUser_id(admin1.getId().toString());
...
...
@@ -154,11 +157,32 @@ public class UserController {