📌  相关文章
📜  如何修复 javax.validation.constraints.Email - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:31.048000             🧑  作者: Mango

代码示例1
@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;
}