The Spring MVC Validation class is used to limit the user's input. The Bean Validation API is supported and used by Spring 4 or higher versions to validate the user's input. It is capable of validating both server-side and client-side applications.
The REST Controller is being tested. The Sample Application is being run.