Annotation Type NotNull
Annotation used to validate a string for nullability.
For custom or stricter string controls, consider using the
Pattern annotation instead.
* Example usage:
*
*
* public class UserDto {
* @NotNull
* private String password;
* }
*
* -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String message- Default:
"Field must not be null"
-