Spring Form Validation
The Need for validation is to check the user input form for require fields Validate numbers in a range validate format (Postal code) custom business rule Java standard bean Validation API Java has a standerd Bean validaton API Defines metadata model and API for entity validation Not tied to either the web tier or the persistence tier Available for server-side apps and also client-side javaFx/Swigns apps. Spring version 4 and higher supports Bean Validation API The preferred method for validation when building the spring app. that means only adding annotations provided by validation API. Simply add validation JAR to our Project. Bean Validation Features: Required - to check filed is required validate length - to check the length of the input Validate numbers - Validate with regular expression custom validation Validation Annotation: @NotNull - Checks that the annotation value is not null. @Min - Must be a number >= value @Max - Must be a number <...