69 - Spring Boot : How to update the object using the PATCH? | Patch Mapping | HTTP Method PATCH

preview_player
Показать описание
#SpringBoot #PATCHMethod #HTTPMethod #PatchMapping

Рекомендации по теме
Комментарии
Автор

Good one. Using a nested body as an example would have made this the best example found on internet.

tezvids
Автор

It is very professional content. Good job!

rarecase
Автор

I checked my settings, but this video seems to actually play at normal speeds although it sounds speed up.

Roanoked
Автор

Can you try not using reflection? It might be much faster to update data

Hinsley-hbyq
Автор

I use custom validators in my current project. And this way, we cannot validate fields. How to implement validation on these fields?

userozancinci
Автор

First of all, great tutorials! i dont see anyone making a video on how to handle multiple fields dynamically except for u. i have 2 question:
1st - do u have a video explaining about the put update? cos u have a code which i dont understand which i cant find in the playlist explaining:


2nd - reflectionUtils is a great mapping tool to update your fields dynamically however it throws error when my field is of type bigInteger and Date. it works find for String, Integer and Double though. so how do i handle with types like bigInt or Date? is there other ways? looks like the reflectionUtils u used only applicable for String, Integr and Double. Appreciate if u can explain briefly here or point me to any resource.

Thanks again!

norulshahlamjohn
Автор

All fun and games until you need to add validation or map complex fields...
I recommend using a Dto class with validation annotations on the fields and allow this Dto to be send as a payload to your endpoint.
Then mapping can be done by e.g. Converters.

hasnaouiahmed
Автор

why spring framework didnt make a easily way for object field editing with reflection? or you dont used it

Автор

It is good video..but how to implement update data for children object

roshanpawar
Автор

This still is not explaining why Patch method is useful. You can implement a Put method the same way.

fidanras