public abstract class BindingResultUtils extends Object
BindingResult.MODEL_KEY_PREFIX| 构造器和说明 |
|---|
BindingResultUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BindingResult |
getBindingResult(Map<?,?> model,
String name)
Find the BindingResult for the given name in the given model.
|
static BindingResult |
getRequiredBindingResult(Map<?,?> model,
String name)
Find a required BindingResult for the given name in the given model.
|
@Nullable public static BindingResult getBindingResult(Map<?,?> model, String name)
model - the model to searchname - the name of the target object to find a BindingResult fornull if none foundIllegalStateException - if the attribute found is not of type BindingResultpublic static BindingResult getRequiredBindingResult(Map<?,?> model, String name)
model - the model to searchname - the name of the target object to find a BindingResult fornull)IllegalStateException - if no BindingResult found