@The difference between Valid and @ Validated is contact

@Valid Function: it is used to verify whether the annotation meets the requirements. It is directly added before the variable user, and the requirement of adding verification information to the variable. When it does not meet the requirements, the error prompt message of message will be returned in the method. Usage: public Object valid(@Vali ...

Posted on Wed, 22 Sep 2021 01:23:02 -0400 by uglyrat