We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
很开心能学习到您的源码, 我是初学者, UserServiceImpl类中 方法 public User login(User user) { return userDao.login(user); } 其中login(user)方法的实现类呢? UserContrller类中 @RequestMapping(value = "/cookie", method = RequestMethod.POST) @responsebody public Result login(User user) { System.out.println("进入 users/cookie方法"); try { String MD5pwd = MD5Util.MD5Encode(user.getPassword(), "UTF-8"); user.setPassword(MD5pwd); } catch (Exception e) { user.setPassword(""); }
User resultUser = userService.login(user); 最后一行获取到的resultUser我想不明白从哪里获取而来,望解答,谢谢!
The text was updated successfully, but these errors were encountered:
mybatis了解一下
Sorry, something went wrong.
login(User user)方法的实现类不用写了吗? 我打印出来的resultUser为null,难道这样打印是不对的?
在mapper文件里
No branches or pull requests
很开心能学习到您的源码,
我是初学者,
UserServiceImpl类中 方法
public User login(User user) {
return userDao.login(user);
}
其中login(user)方法的实现类呢?
UserContrller类中
@RequestMapping(value = "/cookie", method = RequestMethod.POST)
@responsebody
public Result login(User user) {
System.out.println("进入 users/cookie方法");
try {
String MD5pwd = MD5Util.MD5Encode(user.getPassword(), "UTF-8");
user.setPassword(MD5pwd);
} catch (Exception e) {
user.setPassword("");
}
User resultUser = userService.login(user);
最后一行获取到的resultUser我想不明白从哪里获取而来,望解答,谢谢!
The text was updated successfully, but these errors were encountered: