Today, I studied how @ Size @NotNull is used.
Use simple summary
Use @ Size, etc. on properties
If the attribute is encapsulated again, you need to add @ Valid annotation before the encapsulated class (when it is a parameter in the method).
Use the @ Validated annotation on the method class of the way you want to validate.
If the validation requirements are not met, a ConstraintViolationException exception is thrown. We can...