Playframework JSR-303 validated “field” does not have a corresponding accessor for data binding

后端 未结 5 1246
庸人自扰
庸人自扰 2020-12-14 01:32

When I have added this following code to my project

Form filledForm2 = userSignupForm.bindFromRequest();

It has stopped workin

5条回答
  •  感情败类
    2020-12-14 02:15

    I got the same error trying to validate int field in POJO using @Min(value = 0).

    Solved by putting the annotation on getter in combination with @Valid in my bean.

提交回复
热议问题