0

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;
}
Victor Kim
  • 1,647
  • 2
  • 16
  • 33
Sdf19
  • 57
  • 1
  • 5

0 Answers0