Providing validation messages
Spring Lemon uses I18n error messages when validating the input parameters. Hence, create a file named ValidationMessages.properties
inside src\main\resources
, and paste the following into that:
com.naturalprogrammer.spring.blank.email: Email needed
com.naturalprogrammer.spring.invalid.email: Not a well formed email address
com.naturalprogrammer.spring.invalid.email.size: Email must be between {min} and {max} characters
com.naturalprogrammer.spring.duplicate.email: Email Id already used
com.naturalprogrammer.spring.wrong.captcha: Looks like you are a robot! Please try again.
com.naturalprogrammer.spring.invalid.password.size: Password must be between {min} and {max} characters
com.naturalprogrammer.spring.different.passwords: Passwords do not match
com.naturalprogrammer.spring.blank.password: Password needed
blank.name: Name required