I send the following Request
{
"name":"juan",
"lastname":"caviedes",
"email":"[email protected]",
"password":"12345678q",
"areaid":"13",
"profileid":"2"
}
I have the class to map the object.
public class SingUpRequest {
private String name;
private String lastname;
private String email;
private String password;
private String areaid;
private String profileid;
public String getAreaid(){
return areaid;
}
public void setAreaid(String areaid) {
this.areaid = areaid;
}
public String getProfileid(){
return profileid;
}
public void setProfileid(String profileid) {
this.profileid = profileid;
}
//geters and setters
}
The controller method
@PostMapping("/signup")
public ResponseEntity<?> registerUser(@Valid @RequestBody
SignUpRequest signUpRequest) {}
ERROR:
Performing the Debug areaid and profileid take different values.