You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@PostMapping("/add")
public Result add(@RequestBody User user) {
System.out.println(user);
userService.save(user);
return ResultGenerator.genSuccessResult();
}
------------------ 原始邮件 ------------------
发件人: "zihengruan"<[email protected]>;
发送时间: 2020年3月28日(星期六) 下午5:28
收件人: "lihengming/spring-boot-api-project-seed"<[email protected]>;
抄送: "2395951674"<[email protected]>;"Author"<[email protected]>;
主题: Re: [lihengming/spring-boot-api-project-seed] "message": "接口 [/user/add] 内部错误,请联系管理员"bug已解决 (#213)
mapper 生成使用的是 通用Mapper插件,去看文档你就知道在哪里了。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
@PostMapping("/add")
public Result add(@RequestBody User user) {
System.out.println(user);
userService.save(user);
return ResultGenerator.genSuccessResult();
}
加上@RequestBody
终于找错错误的原因了,作者的框架没有错,是我自己registerDate参数没有传对,import java.util.Date的默认格式是2020/03/26,大家要注意了!另外感谢作者的源码!有个问题,不知道mapper.xml的sql语句在哪里
The text was updated successfully, but these errors were encountered: