@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) @Constraint(validatedBy=ContentTypeValidatorForMultipartFile.class) @Documented public @interface ContentType
MultipartFile.
You have to provide javax.mail for the matching.public abstract String value
ContentType.match(String)public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2016. All rights reserved.