Annotation Type Max


@Target(FIELD) @Retention(RUNTIME) public @interface Max
Annotation used to validate an integer input to be less than the max value. * Example usage: *
  * 
  * public class UserDto {
  *     @Max
  *     private String password;
  * }
  * 
  * 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    int
     
  • Element Details

    • value

      int value
      Default:
      2147483647
    • message

      String message
      Default:
      "Field value must be less than or equal to 2147483647"