202122232425262728
/** * 通过注解对一个Pojo进行验证 */ public Errors validate(Object target) { Errors errors = new Errors(); validate(target, errors); return errors; }