This validator checks that a numeric field has a value within a specified range. If neither min
nor max
is set, nothing will be done.
The annotation must be applied at method level.
If neither min
nor max
is set, nothing will be done.
@IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true, min = "0", max = "42") @IntRangeFieldValidator(message = "Default message", key = "i18n.key", shortCircuit = true, minExpression = "${minValue}", maxExpression = "${maxValue}")