hellokoding/registration-login-spring-hsql

Validation Errors are not displaying on Registration page

iviraj90 opened this issue · 2 comments

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Dec 12 17:18:45 IST 2016
There was an unexpected error (type=Internal Server Error, status=500).
No message found under code 'Size.userForm.username.userForm.username' for locale 'en_US'.

If you modify the name of the validation.properties file to ValidationMesages.properties, Spring will be able to find it.

You could also add spring.messages.basename=validation to your application.properties