With the given code , it will work fine if you use the import lombok.Data; in ProductRequest.
The possibility of 400 Bad Request is may be of your input type mismatch.
sample json request body
{
"name": "Laptop",
"price": 999.99
}
@Data is from LombokStill getting the error please share your log details