Home > Back-end >  Consult @ Valid annotation invalid problem, get a head in the afternoon
Consult @ Valid annotation invalid problem, get a head in the afternoon

Time:09-20




Is a new page in the background check, don't know why the background check no validation to @ vaild annotations without work
BindingResult objects show the error is 0,
Solving!!!!!

CodePudding user response:

@ Validated

CodePudding user response:

reference 1/f, the wind the newsletter to reply:
@ Validated

Both use the useless

CodePudding user response:

Tried, found after deleting the BindingResult, annotations are effect, is this why

CodePudding user response:

BindingResult need held behind @ Validated

CodePudding user response:

reference 4 floor Jzazvja response:
BindingResult need held behind @ Validated

But BindingResult not to put the back of the entity class
?After I do this operation will be submitted to the the place of error
  • Related