Answers for "javax.validation.constraints.email not working message"

0

how to fix javax.validation.constraints.Email

@Data
@JsonInclude( JsonInclude.Include.NON_NULL )
public class LocationAccountVO
{
private UUID locationId;
    @NotEmpty(message = "Email is mandatory.")
    @Pattern(regexp = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", message = "Email be valid")
    private String email;
}
Posted by: Guest on July-25-2020
-1

annotation spring notnull

<dependency>
    <groupId>org.hibernate.validator</groupId>
    <artifactId>hibernate-validator</artifactId>
</dependency>

with '@validateur' in application
Posted by: Guest on June-15-2020

Code answers related to "javax.validation.constraints.email not working message"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language