public class SpelValidExecutor extends Object
SpelConstraint 进行标记的注解执行校验。SpelConstraint| 构造器和说明 |
|---|
SpelValidExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
static @NotNull ObjectValidResult |
validateObject(@NotNull Object verifiedObject)
验证对象
如果对象中有任意使用了 spel 约束注解的字段,则会对该字段进行校验。
|
static @NotNull ObjectValidResult |
validateObject(@NotNull Object verifiedObject,
@NotNull Set<Object> validateGroups)
验证对象
如果对象中有任意使用了 spel 约束注解的字段,则会对该字段进行校验。
|
@NotNull public static @NotNull ObjectValidResult validateObject(@NotNull @NotNull Object verifiedObject)
如果对象中有任意使用了 spel 约束注解的字段,则会对该字段进行校验。
verifiedObject - 被校验的对象@NotNull public static @NotNull ObjectValidResult validateObject(@NotNull @NotNull Object verifiedObject, @NotNull @NotNull Set<Object> validateGroups)
如果对象中有任意使用了 spel 约束注解的字段,则会对该字段进行校验。
verifiedObject - 被校验的对象validateGroups - 分组信息,只有同组的注解才会被校验Copyright © 2024. All rights reserved.