ConstraintViolationException: User Entity with transient confirmPassword field
问题 I'm not able to submit my spring form. I'm getting this exception and don't know why: javax.validation.ConstraintViolationException: validation failed for classes [com.example.my.entities.User] during persist time for groups [javax.validation.groups.Default, ] And here's my User entity: @Entity @Table( name = "tbl_user" ) public class User implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue @Column( name = "id", nullable = false, columnDefinition =