-
Notifications
You must be signed in to change notification settings - Fork 117
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
对于一个已存在的值,需要置空,如何传参 #49
Comments
Same here |
同问呀,前端传的字段是null,但是后端配置了type=int,required = false, allowEmpty = true,会报错呀 |
能否提供一个报错的例子? |
|
同问+1 |
1 similar comment
同问+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
例如用户预约日期字段,用户原先选择了一个日期,保存成功。
后来用户想暂时移除该日期,于是删除了选择的日期,此时前端将该字段以 NULL 形式告知后端,该字段已被删除。
但此时 parameter 做校验时,即使标识了
required = false, allowEmpty = true
,仍然会报错。The text was updated successfully, but these errors were encountered: