Concept Flow - @Valid annotation on request body
Client sends HTTP request with JSON body
Spring Boot Controller receives request
@Valid triggers validation on request body object
Validation passes
Response sent back to client
When a client sends data, Spring Boot uses @Valid to check the data. If valid, the controller runs. If not, an error response is sent.