Spring Integer validation custom message not showing but conversion error
I have an Integer
field in the entity class as below which is also the primary key and I want to validate for the range from 1 to 99999. But when entering a floating point value it gives conversion error message instead of custom message.