Open bochuan122 opened 6 years ago
Correct me if my understanding is wrong, your intension is to avoid writing checking NULL when executing validate
method on object, right?
Yes, if I have to write checking NULL here, there's no need to to add @FluentValidate({NotNullValidator.class})
on Integer id;
.
FluentValidateInterceptor
类fluentValidator.on(arguments[i], addOnValidatorChain)
针对参数对象执行校验,基于流式风格,属性间的联合约束校验在单属性校验成功的基础上进行应该比较合理,也更利于简化验证逻辑。