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

后端 未结 5 1287
庸人自扰
庸人自扰 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:21

    Had the same issue...

    To remove this error, you should define your variables as public.

    class User{
       public String username;
       public String password;
    }
    

提交回复
热议问题