【发布时间】:2013-05-27 10:30:42
【问题描述】:
当我将以下代码添加到我的项目中时
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的配置?
【问题讨论】:
标签: java web-applications playframework