1. Basic validate  on bean's attribute.

@Notnull

@Max

@Min

@Pattern

...

2. Validate by logic

1) password repeat if same (server validate/client validate)

   

    @InitBinder("form")
    public void initBinder(WebDataBinder binder) {
        binder.addValidators(userCreateFormValidator);
    }

     public class UserCreateFormValidator implements Validator {

      ...

    }


 

相关文章:

  • 2021-12-28
  • 2021-05-19
  • 2022-12-23
  • 2021-09-27
  • 2022-01-16
  • 2021-09-09
  • 2022-12-23
  • 2022-03-07
猜你喜欢
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-12-11
相关资源
相似解决方案