Why do bean validation Min/Max constraints not support the double type?

Use the @DecimalMin annotation.
You will need to pass a literal String value, because the attrubute value must be constant (String.valueOf(- Math.PI)) doesn’t work.
It works to validate Double attributes.

@DecimalMin(value = "0.01", message = "Your message...")
private Double longitude;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)