我遇到同样的问题:solution
执行例外:
[IllegalStateException:JSR-303验证属性'phone'没有相应的数据绑定访问器 - 检查DataBinder的配置(bean属性与直接字段访问)]
@Entity
public class Contact extends Model {
@Id
@GeneratedValue
public Long id;
@Required
public String name;
@Required
public String phone;
@Required
@Email
public String email;
public static Finder<Long, Contact> find = new Finder<>(Contact.class);
}
当我添加getter / setter时......没关系