Playframework JSR-303 验证的“字段”没有用于数据绑定的相应访问器
2022-09-01 20:25:59
当我将以下代码添加到我的项目中时
Form<User> filledForm2 = userSignupForm.bindFromRequest();
它已通过显示一条错误消息停止工作,该消息指出:
Execution exception
[IllegalStateException: JSR-303 validated property 'Password' does not have a corresponding accessor for data binding - check your DataBinder's configuration (bean property versus direct field access)]
我的班级是这样的:User
class User{
String username;
String Password;
}
现在如何在Java Play框架中检查/修改DataBinder的配置?