layout: default title: ExpressionValidator Annotation parent: title: Annotations url: annotations.html

ExpressionValidator Annotation

This non-field level validator validates a supplied regular expression.

Usage

The annotation must be applied at method level.

Parameters

Examples

 @ExpressionValidator(message = "Default message", key = "i18n.key", shortCircuit = true, expression = "an OGNL expression" )