@RequestMapping(method = RequestMethod.GET) public @ResponseBody UserInfo userInfo(User user) { return new UserInfo(user.getUid(), user.getLogin(), user.getAuthorities()); }