0

i am making an api for PUT request. Some fields in database is nullable. I found that it seems ok to have null value in POST request, but when I use PUT request it doesn't work.I do not want to use PATCH since I want to update the whole set of values(even it is null).How can i fix this question?

Shadow
  • 32,277
  • 10
  • 49
  • 61
Emily Li
  • 37
  • 5
  • use @JsonProperty annotation, or this could helps. https://stackoverflow.com/questions/18805455/setting-default-values-to-null-fields-when-mapping-with-jackson – Vincent Nov 02 '21 at 08:39

0 Answers0