Package jakarta.validation.constraints
Annotation Type NotBlank
-
@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) public @interface NotBlank
The annotated element must not benull
and must contain at least one non-whitespace character. AcceptsCharSequence
.- Since:
- 2.0
- Author:
- Hardy Ferentschik
- See Also:
Character.isWhitespace(char)
-
-
-
payload
java.lang.Class<? extends Payload>[] payload
- Default:
- {}
-
-