Is it possible to validate a user entry if the email has specific domain after @
sign instead of i.e. gmail
I would like to allow the registration to the user if he will use @outlook.com
.
class User {
@Email
@NotBlank
private String email;
}