-
Notifications
You must be signed in to change notification settings - Fork 481
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
使用post方法时,使用requestBody接收数据时,如何将接收的实体中字段值为空字符串的字段转为null #2060
Comments
自己注册一个String的Reader,在这个 reader里处理 |
|
你这个是 filter不是ObjectReader,读不支持 ValueFilter,你可以看下源码 读仅支持 AutotypeFilter 和 ExtraProcessor |
我试了 没生效 |
目前有个没有办法的解决办法 |
舍弃了上面的实现方式。非常不严谨,可以让前端处理 |
请描述您的问题
询问有关本项目的使用和其他方面的相关问题。
使用post方法时且使用requestBody接收数据时,如何将接收的实体中字段值为空字符串的字段值转为null
The text was updated successfully, but these errors were encountered: