-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
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
"message": "接口 [/user/add] 内部错误,请联系管理员"bug已解决 #213
Comments
嗯嗯,写了哈
…------------------ 原始邮件 ------------------
发件人: "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.
|
我的也和你报错一样,但是我不需要加@requestbody,而是registerDate数据改为{"key":"registerDate","value":"2020/03/31"}就行了,为了避免中文乱码,在连接数据库的语句后面加上 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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: