Václav Škorpil
06/21/2022, 12:01 PMJukka Siivonen
06/21/2022, 12:12 PMVáclav Škorpil
06/21/2022, 12:14 PMJukka Siivonen
06/21/2022, 12:16 PMVáclav Škorpil
06/21/2022, 12:22 PMpi0id
06/21/2022, 1:14 PMname
to NAME
and from registrationNumber
to REGISTRATION_NUMBER
.
So, create a class annotated with @Component
that implements Converter interface. You just have to implement the required method convert
from source object to target.
Also, remove the @RequestParam
annotation from the endpoint.